# Authsome

> Credential broker and vault for AI agents. Open-source. 45 bundled OAuth2 and API key providers.

Authsome stores credentials in an encrypted vault, then injects them at the proxy boundary so agents never see secret values. It refreshes OAuth2 tokens automatically and supports headless flows like device code, so agents can run in CI, over SSH, in cron jobs, and in background workers without a human in the loop.

## Docs

- [Quickstart](https://authsome.ai/docs/quickstart): Install authsome and log in to your first provider in five minutes.
- [Architecture](https://authsome.ai/docs/concepts/architecture): The five layers and how the proxy ties them together.
- [CLI reference](https://authsome.ai/docs/reference/cli): Commands, flags, and exit codes.
- [Bundled providers](https://authsome.ai/docs/reference/bundled-providers): The 45 providers that ship out of the box.
- [Custom providers](https://authsome.ai/docs/guides/custom-providers): How to add a JSON provider definition.
- [Threat model](https://authsome.ai/docs/security/threat-model): What authsome protects against and what it doesn't.
- [Troubleshooting](https://authsome.ai/docs/troubleshooting/doctor): The doctor command and common failure modes.

## Agent integrations

- [Claude Code](https://authsome.ai/docs/integrations/agents/claude-code)
- [Codex](https://authsome.ai/docs/integrations/agents/codex)
- [Cursor](https://authsome.ai/docs/integrations/agents/cursor)
- [OpenCode](https://authsome.ai/docs/integrations/agents/opencode)
- [LangChain](https://authsome.ai/docs/integrations/agents/langchain)
- [LlamaIndex](https://authsome.ai/docs/integrations/agents/llamaindex)
- [OpenAI Agents SDK](https://authsome.ai/docs/integrations/agents/openai-agents-sdk)
- [Anthropic SDK](https://authsome.ai/docs/integrations/agents/anthropic-sdk)

## Blog

- [How Authsome keeps agent credentials out of your env vars](https://authsome.ai/blog/keep-agent-credentials-out-of-env-vars): Environment variables hand the real key to your agent. Here is how a local credential gateway gives agents access without ever exposing the secret.
- [Browser-based AI agents and the cookie-jar problem](https://authsome.ai/blog/browser-agents-and-the-cookie-jar-problem): Browser agents like ChatGPT agent mode, OpenAI Operator, Browser Use, and Anthropic computer-use inherit every cookie and logged-in session in the browser they drive. Here is the threat model, what isolation works today, and the honest line between what a credential broker can and cannot fix.
- [OpenAI API key hygiene for AI agents: project keys, restricted keys, and what an agent should actually use](https://authsome.ai/blog/openai-api-key-hygiene-for-ai-agents): OpenAI ships four key types and per-endpoint scopes most teams never enable. Here is which one to hand an AI agent, how to scope it correctly, and where the dashboard stops helping.
- [Supply chain risks for AI agents: malicious MCP servers, poisoned skills, and how to triage](https://authsome.ai/blog/supply-chain-risks-for-ai-agents): A field guide to the 2025-26 wave of agent supply chain attacks. Malicious MCP servers, poisoned skills, npm and PyPI compromises, the five injection vectors, and the exact triage checklist if you already shipped one.
- [Browser-based AI agents and the cookie-jar problem](https://authsome.ai/blog/browser-based-ai-agents-and-the-cookie-jar-problem): Browser agents like ChatGPT agent mode, OpenAI Operator, Browser Use, and Anthropic computer-use inherit every cookie and logged-in session in the browser they drive. Here is the threat model, what isolation works today, and the honest line between what a credential broker can and cannot fix.
- [OpenAI API key hygiene for AI agents: project keys, restricted keys, and what an agent should actually use](https://authsome.ai/blog/openai-api-key-hygiene-for-ai-agents-project-keys-restricted-keys-and-what-an-agent-should-actua): OpenAI ships four key types and per-endpoint scopes most teams never enable. Here is which one to hand an AI agent, how to scope it correctly, and where the dashboard stops helping.
- [Supply chain risks for AI agents: malicious MCP servers, poisoned skills, and how to triage](https://authsome.ai/blog/supply-chain-risks-for-ai-agents-malicious-mcp-servers-poisoned-skills-and-how-to-triage): A field guide to the 2025-26 wave of agent supply chain attacks. Malicious MCP servers, poisoned skills, npm and PyPI compromises, the five injection vectors, and the exact triage checklist if you already shipped one.
- [Anthropic API direct: keeping the key safe in your agent code](https://authsome.ai/blog/anthropic-api-direct-keeping-the-key-safe): The Anthropic Python and TypeScript SDKs read ANTHROPIC_API_KEY from the process environment by default, which means every dependency and prompt-injected output can read it too. Here is the broker pattern that keeps sk-ant out of the process, for both SDKs.
- [Building a DevOps agent: cluster, cloud, PagerDuty, GitHub, without a single long-lived key](https://authsome.ai/blog/building-a-devops-agent-no-long-lived-keys): A field report on building a production DevOps incident triage agent across EKS, CloudWatch, PagerDuty, Datadog, GitHub and Slack with zero long-lived credentials on disk.
- [Anthropic API direct: keeping the key safe in your agent code](https://authsome.ai/blog/anthropic-api-direct-keeping-the-key-safe-in-your-agent-code): The Anthropic Python and TypeScript SDKs read ANTHROPIC_API_KEY from the process environment by default, which means every dependency and prompt-injected output can read it too. Here is the broker pattern that keeps sk-ant out of the process, for both SDKs.
- [Building a DevOps agent: cluster, cloud, PagerDuty, GitHub, without a single long-lived key](https://authsome.ai/blog/building-a-devops-agent-cluster-cloud-pagerduty-github-without-a-single-long-lived-key): A field report on building a production DevOps incident triage agent across EKS, CloudWatch, PagerDuty, Datadog, GitHub and Slack with zero long-lived credentials on disk.
- [Building a research agent: papers, web, Drive, and inbox without leaking](https://authsome.ai/blog/building-a-research-agent-that-leaks-nothing): A field report on wiring a multi-tool research agent across Brave, arXiv, Google Drive, Gmail, Notion, Linear, and Slack, then taking every credential out of the agent process so a prompt injection has nothing to steal.
- [Compliance for AI agents: SOC 2, audit trails, and the credential question](https://authsome.ai/blog/compliance-for-ai-agents-soc2-audit-trails-credentials): SOC 2, ISO 27001, and the EU AI Act all assume a stable identity used a credential. AI agents break that assumption, and the gap between secrets-manager logs and the agent task that actually triggered the call is the part nobody ships for you.
- [GitHub token hygiene for AI agents: PATs, fine-grained tokens, GitHub Apps, and OAuth](https://authsome.ai/blog/github-token-hygiene-for-ai-agents): GitHub offers four ways to authenticate an AI agent and they are not interchangeable. A ranked deep-dive on scope, lifetime, revocation, and audit attribution, with copy-pasteable examples.
- [Building a research agent: papers, web, Drive, and inbox without leaking](https://authsome.ai/blog/building-a-research-agent-papers-web-drive-and-inbox-without-leaking): A field report on wiring a multi-tool research agent across Brave, arXiv, Google Drive, Gmail, Notion, Linear, and Slack, then taking every credential out of the agent process so a prompt injection has nothing to steal.
- [Compliance for AI agents: SOC 2, audit trails, and the credential question](https://authsome.ai/blog/compliance-for-ai-agents-soc-2-audit-trails-and-the-credential-question): SOC 2, ISO 27001, and the EU AI Act all assume a stable identity used a credential. AI agents break that assumption, and the gap between secrets-manager logs and the agent task that actually triggered the call is the part nobody ships for you.
- [GitHub token hygiene for AI agents: PATs, fine-grained tokens, GitHub Apps, and OAuth](https://authsome.ai/blog/github-token-hygiene-for-ai-agents-pats-fine-grained-tokens-github-apps-and-oauth): GitHub offers four ways to authenticate an AI agent and they are not interchangeable. A ranked deep-dive on scope, lifetime, revocation, and audit attribution, with copy-pasteable examples.
- [API key management for AI agents: the complete 2026 guide](https://authsome.ai/blog/api-key-management-for-ai-agents-2026-guide): A definitive 2026 guide to API key management for AI agents. The full options ladder, honest tradeoffs, a decision framework, and the threat model, with verified config for Cursor, LangChain, Doppler, Vault, and Infisical.
- [Running AI agents safely in CI/CD: a 2026 hardening guide](https://authsome.ai/blog/running-ai-agents-safely-in-ci-cd): The Comment and Control disclosures in 2025 showed a PR title can be enough to exfiltrate ANTHROPIC_API_KEY and GITHUB_TOKEN from CI-resident AI agents. Here is where the secrets actually live in a GitHub Actions run, the OIDC and egress patterns that shrink the blast radius, and a worked example.
- [Securing the OpenAI Agents SDK end to end](https://authsome.ai/blog/securing-the-openai-agents-sdk-end-to-end): The OpenAI Agents SDK reads OPENAI_API_KEY from your process environment and gives tools direct access to whatever you hand them. Here is how to lock that down end to end in 2026.
- [API key management for AI agents: the complete 2026 guide](https://authsome.ai/blog/api-key-management-for-ai-agents-the-complete-2026-guide): A definitive 2026 guide to API key management for AI agents. The full options ladder, honest tradeoffs, a decision framework, and the threat model, with verified config for Cursor, LangChain, Doppler, Vault, and Infisical.
- [Running AI agents safely in CI/CD: a 2026 hardening guide](https://authsome.ai/blog/running-ai-agents-safely-in-cicd-a-2026-hardening-guide): The Comment and Control disclosures in 2025 showed a PR title can be enough to exfiltrate ANTHROPIC_API_KEY and GITHUB_TOKEN from CI-resident AI agents. Here is where the secrets actually live in a GitHub Actions run, the OIDC and egress patterns that shrink the blast radius, and a worked example.
- [I built an outreach agent that touches six SaaS tools and leaks nothing](https://authsome.ai/blog/i-built-an-outreach-agent-that-leaks-nothing): A first-person field report on building a multi-tool AI outreach agent across HubSpot, Notion, Hunter, Resend, Slack, and Linear, then keeping every credential out of the agent process with a local broker and a deny-by-default allowlist.
- [Secrets managers vs credential brokers for AI agents: Doppler, Vault, Infisical, and where each fits](https://authsome.ai/blog/secrets-managers-vs-credential-brokers-for-ai-agents): Doppler, HashiCorp Vault, and Infisical solve storage, rotation, and access control for AI agents, but they still deliver the raw key into the agent process. Here is where each secrets manager stops, where a credential broker starts, and why you want both.
- [I built an outreach agent that touches six SaaS tools and leaks nothing](https://authsome.ai/blog/i-built-an-outreach-agent-that-touches-six-saas-tools-and-leaks-nothing): A first-person field report on building a multi-tool AI outreach agent across HubSpot, Notion, Hunter, Resend, Slack, and Linear, then keeping every credential out of the agent process with a local broker and a deny-by-default allowlist.
- [Secrets managers vs credential brokers for AI agents: Doppler, Vault, Infisical, and where each fits](https://authsome.ai/blog/secrets-managers-vs-credential-brokers-for-ai-agents-doppler-vault-infisical-and-where-each-fits): Doppler, HashiCorp Vault, and Infisical solve storage, rotation, and access control for AI agents, but they still deliver the raw key into the agent process. Here is where each secrets manager stops, where a credential broker starts, and why you want both.
- [Connect Cursor to your whole stack without pasting a token](https://authsome.ai/blog/connect-cursor-to-your-stack-without-pasting-tokens): Cursor agents need GitHub, Linear, and Postgres access, and the usual fix is pasting tokens into .cursor/mcp.json or .env where they get committed and read by the agent. Here is how to keep keys out of Cursor entirely.
- [Safe API access for LangChain and LlamaIndex agents](https://authsome.ai/blog/safe-api-access-for-langchain-and-llamaindex-agents): LangChain and LlamaIndex agents load API keys from os.environ, where any prompt injection or compromised tool can read them. Two safe patterns to keep real secrets out of the process.
- [Connect Cursor to your whole stack without pasting a token](https://authsome.ai/blog/connect-cursor-to-your-whole-stack-without-pasting-a-token): Cursor agents need GitHub, Linear, and Postgres access, and the usual fix is pasting tokens into .cursor/mcp.json or .env where they get committed and read by the agent. Here is how to keep keys out of Cursor entirely.
- [The agent auth wave: auth.md, ID-JAG, AAuth, CIMD, and why OAuth is finally growing up in 2026](https://authsome.ai/blog/agent-auth-wave-2026): Six months ago, agent authentication was a gap in the OAuth ecosystem. As of May 2026, five separate efforts are converging on a coherent shape. Here is the map, the timeline, and what is still missing.
- [MCP gateways in 2026, compared: the twelve you should actually know about](https://authsome.ai/blog/mcp-gateways-2026-compared): Twelve real MCP gateways in 2026, sorted by deployment model and use case. Self-hosted open source first, then hosted SaaS, then cloud-platform managed. With an honest take on what is and isn't actually a gateway.
- [MCP server authentication in 2026: seven approaches, ranked by where the credential lives](https://authsome.ai/blog/mcp-server-authentication-2026-ranked): From no-auth localhost to CIMD to credential brokers, seven ways MCP servers handle auth in 2026. Real ranking criteria, current spec status, and an honest look at what production servers actually ship.
- [Building a self-hosted MCP server: the auth checklist nobody publishes](https://authsome.ai/blog/self-hosted-mcp-server-auth-checklist): Every blog post tells you how to use an MCP server. This is the post about how to build one that does not show up on a security report. Stdio and HTTP, OAuth and env-var, with a real checklist.
- [What is auth.md? WorkOS's open agent registration protocol, explained](https://authsome.ai/blog/workos-auth-md-open-agent-registration-protocol): WorkOS just shipped auth.md, a markdown file your service hosts at /auth.md that tells AI agents how to register on behalf of a user. Here is what it actually does, what it builds on, and what it does not solve.
- [Building a self-hosted MCP server: the auth checklist nobody publishes](https://authsome.ai/blog/building-a-self-hosted-mcp-server-the-auth-checklist-nobody-publishes): Every blog post tells you how to use an MCP server. This is the post about how to build one that does not show up on a security report. Stdio and HTTP, OAuth and env-var, with a real checklist.
- [MCP gateways in 2026, compared: the twelve you should actually know about](https://authsome.ai/blog/mcp-gateways-in-2026-compared-the-twelve-you-should-actually-know-about): Twelve real MCP gateways in 2026, sorted by deployment model and use case. Self-hosted open source first, then hosted SaaS, then cloud-platform managed. With an honest take on what is and isn't actually a gateway.
- [MCP server authentication in 2026: seven approaches, ranked by where the credential lives](https://authsome.ai/blog/mcp-server-authentication-in-2026-seven-approaches-ranked-by-where-the-credential-lives): From no-auth localhost to CIMD to credential brokers, seven ways MCP servers handle auth in 2026. Real ranking criteria, current spec status, and an honest look at what production servers actually ship.
- [The agent auth wave: auth.md, ID-JAG, AAuth, CIMD, and why OAuth is finally growing up in 2026](https://authsome.ai/blog/the-agent-auth-wave-authmd-id-jag-aauth-cimd-and-why-oauth-is-finally-growing-up-in-2026): Six months ago, agent authentication was a gap in the OAuth ecosystem. As of May 2026, five separate efforts are converging on a coherent shape. Here is the map, the timeline, and what is still missing.
- [What is auth.md? WorkOS's open agent registration protocol, explained](https://authsome.ai/blog/what-is-authmd-workoss-open-agent-registration-protocol-explained): WorkOS just shipped auth.md, a markdown file your service hosts at /auth.md that tells AI agents how to register on behalf of a user. Here is what it actually does, what it builds on, and what it does not solve.
- [Top agent proxy tools in 2026: what each one does and what to know before picking one](https://authsome.ai/blog/top-agent-proxy-tools-what-to-know): Eight tools that sit between AI agents and the services they call. Not a comparison post. A walking tour of the category so you know what each is for, what it's good at, and where it'll bite you.
- [Top agent proxy tools in 2026: what each one does and what to know before picking one](https://authsome.ai/blog/top-agent-proxy-tools-in-2026-what-each-one-does-and-what-to-know-before-picking-one): Eight tools that sit between AI agents and the services they call. Not a comparison post. A walking tour of the category so you know what each is for, what it's good at, and where it'll bite you.
- [What is MCP? A developer's primer on the Model Context Protocol](https://authsome.ai/blog/what-is-mcp-a-developer-primer): The protocol that connects AI agents to external tools. What MCP actually is, how the architecture works, what to build with it, and the auth questions nobody answers.
- [What is MCP? A developer's primer on the Model Context Protocol](https://authsome.ai/blog/what-is-mcp-a-developers-primer-on-the-model-context-protocol): The protocol that connects AI agents to external tools. What MCP actually is, how the architecture works, what to build with it, and the auth questions nobody answers.
- [AI agent security in 2026: the four threat models you actually need to think about](https://authsome.ai/blog/ai-agent-security-in-2026-four-threat-models): Prompt injection, credential exfiltration, runaway autonomy, supply chain. What each one looks like in practice, how attacks actually unfold, and which defenses work.
- [AI agent security in 2026: the four threat models you actually need to think about](https://authsome.ai/blog/ai-agent-security-in-2026-the-four-threat-models-you-actually-need-to-think-about): Prompt injection, credential exfiltration, runaway autonomy, supply chain. What each one looks like in practice, how attacks actually unfold, and which defenses work.
- [Running agents without losing my keys: a month with authsome](https://authsome.ai/blog/running-agents-without-losing-my-keys): Five weeks with a local-first credential broker. What worked, what bit me, and the things the docs don't tell you up front.
- [Running agents without losing my keys: a month with authsome](https://authsome.ai/blog/running-agents-without-losing-my-keys-a-month-with-authsome): Five weeks with a local-first credential broker. What worked, what bit me, and the things the docs don't tell you up front.
- [Claude Code: the production-ready setup guide](https://authsome.ai/blog/claude-code-production-ready-setup): Beyond the install screen. Skills, MCP servers, multi-account auth, CI usage, and the credential layer that keeps it from leaking. The setup I wish someone had handed me on day one.
- [Claude Code: the production-ready setup guide](https://authsome.ai/blog/claude-code-the-production-ready-setup-guide): Beyond the install screen. Skills, MCP servers, multi-account auth, CI usage, and the credential layer that keeps it from leaking. The setup I wish someone had handed me on day one.
- [Agent credential brokers in 2026: Authsome vs Agent Vault vs Clawvisor vs OneCLI](https://authsome.ai/blog/agent-credential-brokers-in-2026): Four open-source credential brokers built for AI agents. What each one optimizes for, who they're built for, and how to pick.
- [Agent credential brokers in 2026: Authsome vs Agent Vault vs Clawvisor vs OneCLI](https://authsome.ai/blog/agent-credential-brokers-in-2026-authsome-vs-agent-vault-vs-clawvisor-vs-onecli): Four open-source credential brokers built for AI agents. What each one optimizes for, who they're built for, and how to pick.
- [AWS Secrets Manager isn't built for AI agents](https://authsome.ai/blog/aws-secrets-manager-isnt-built-for-ai-agents): AWS Secrets Manager is great at what it was designed for: serving long-lived service credentials to AWS workloads. AI agents need something different. Here's why, and what to use instead.
- [Managing multiple GitHub accounts for AI agents](https://authsome.ai/blog/managing-multiple-github-accounts-for-ai-agents): Work and personal GitHub identities, both reachable from the same shell, with the right one picked per task. The actual mechanics, not the wishful version.
- [Headless agent OAuth: the device code flow explained](https://authsome.ai/blog/headless-agent-oauth-the-device-code-flow-explained): How OAuth2 device authorization works, why it's the right pattern for SSH sessions and CI runners, and what the RFC doesn't quite tell you.
- [Wiring Claude Code to GitHub, Linear, and Stripe with one local broker](https://authsome.ai/blog/wiring-claude-code-to-github-linear-and-stripe): Authenticate once per service, then let Claude Code reach all three without holding raw tokens. A literal walk-through with the real authsome commands.
- [Wiring Claude Code to GitHub, Linear, and Stripe with one local broker](https://authsome.ai/blog/wiring-claude-code-to-github-linear-and-stripe-with-one-local-broker): Authenticate once per service, then let Claude Code reach all three without holding raw tokens. A literal walk-through with the real authsome commands.
- [Running AI agents in production: what nobody tells you about credentials](https://authsome.ai/blog/running-ai-agents-in-production-credentials): Seven credential failure modes that don't show up until you've shipped. Notes from running agents past the demo stage.
- [Running AI agents in production: what nobody tells you about credentials](https://authsome.ai/blog/running-ai-agents-in-production-what-nobody-tells-you-about-credentials): Seven credential failure modes that don't show up until you've shipped. Notes from running agents past the demo stage.
- [How prompt injection becomes credential exfiltration](https://authsome.ai/blog/how-prompt-injection-becomes-credential-exfiltration): Six real attacks from 2025-2026, the common thread between them, and why filter-the-input defenses can't fix it.
- [Stop putting API keys in environment variables](https://authsome.ai/blog/stop-putting-api-keys-in-environment-variables): The tutorial pattern that everyone copies has six known leak vectors. Here's how each one fires in production, and what to do instead.

## Source

- [GitHub](https://github.com/agentrhq/authsome): Source, issues, releases.
- [PyPI](https://pypi.org/project/authsome/): Install via pip or uvx.
- [Discord](https://discord.gg/9YP2C9tvMp): Community support.

## Optional

- [RSS](https://authsome.ai/blog/feed.xml): Blog RSS feed.
- [Sitemap](https://authsome.ai/sitemap.xml): XML sitemap of all indexable pages.
