Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

api-credentials

Skill by oaustegard

Manages API credentials for Anthropic Claude, Google Gemini and GitHub so other skills can call those services. The skill is marked deprecated in favor of reading key files directly.

  • Score 71
  • 420 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install api-credentials

Built from the published package, never by AI.

git clone --depth 1 https://github.com/oaustegard/claude-skills /tmp/claude-skills && mkdir -p ~/.claude/skills && cp -r /tmp/claude-skills/api-credentials ~/.claude/skills/api-credentials

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install api-credentials in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

API Credentials is a skill that stores and retrieves API keys for Anthropic Claude, Google Gemini and GitHub. It is a dependency for other skills that call external APIs. Keys are read from a config.json file in the skill directory first, then from environment variables, and a ValueError is raised if neither is set. The module exposes getters for each provider, a masking helper for safe logging, and a verify_credential check.

The skill is marked deprecated. Hosted skills environments now read credentials from project knowledge files, such as ANTHROPIC_API_KEY.txt, GOOGLE_API_KEY.txt and GITHUB_API_KEY.txt. The source says the skill may still help local development or backward compatibility. It is intended as a personal skill, so config.json must never be committed with real keys, and skills should not log or display full API keys.

Written from the project's SKILL.md and checked against it.

What it can do

  • get_anthropic_api_key()Returns the Anthropic API key or raises ValueError if it is not configured.
  • get_google_api_key()Returns the Google API key or raises ValueError if it is not configured.
  • get_github_api_key()Returns the GitHub Personal Access Token or raises ValueError if it is not configured.
  • get_api_key_masked(api_key)Returns a masked version of a key for safe logging, such as sk-ant-...xyz.
  • verify_credential(provider)Checks whether a provider is configured and returns True or False without raising.

What you need

  • Anthropic, Google and GitHub API keys
  • Python to run the credentials.py module
  • A config.json file or environment variables holding the keys

Try asking

  • Check whether my GitHub API key is configured for this skill
  • Show my Anthropic API key in masked form so I can log it safely
  • Which provider credentials are set up on this machine?

Good to know

  • Marked as deprecated; hosted skills environments no longer need it
  • Described as a personal skill; do not share or commit real credentials
  • Legacy use mainly for local development or backward compatibility

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: api-credentials/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to api-credentials

All alternatives →

Compare with function_health, windows-privilege-escalation or github-actions-advanced

api-credentials: common questions

Is the API Credentials skill still needed?

The source says it is no longer needed for hosted skills environments. Skills now read keys directly from project knowledge files, and this skill is kept for local development or backward compatibility.

Which providers does API Credentials support?

It supports Anthropic (Claude API), Google (Gemini API, Vertex AI and similar) and GitHub (Personal Access Tokens). The source says it can be extended to other providers.

Where does the skill look for API keys?

It checks config.json in the skill directory first, then environment variables. If neither has the key, it raises a ValueError.

How do I install api-credentials?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is api-credentials free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is api-credentials safe to use?

It scores 71 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to api-credentials?

Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.

api-credentials Install

Add to stack

Loading.