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.
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-credentialsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/oaustegard/claude-skills /tmp/claude-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/claude-skills/api-credentials ~/.gemini/antigravity-cli/skills/api-credentialsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
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
ANo 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 →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
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.
