{
  "markdown": "<p align=\"center\">\n  <picture>\n    <source media=\"(prefers-color-scheme: dark)\" srcset=\"assets/authsome-logo-dark.svg\">\n    <source media=\"(prefers-color-scheme: light)\" srcset=\"assets/authsome-logo-light.svg\">\n    <img alt=\"Authsome\" src=\"assets/authsome-logo-light.svg\" height=\"60\">\n  </picture>\n</p>\n\n<p align=\"center\">\n  <a href=\"https://pypi.org/project/authsome/\"><img src=\"https://img.shields.io/pypi/v/authsome.svg\" alt=\"PyPI version\"></a>\n  <a href=\"https://pypi.org/project/authsome/\"><img src=\"https://img.shields.io/pypi/pyversions/authsome.svg\" alt=\"Python 3.13+\"></a>\n  <a href=\"https://opensource.org/licenses/MIT\"><img src=\"https://img.shields.io/badge/License-MIT-yellow.svg\" alt=\"License: MIT\"></a>\n  <a href=\"https://pypi.org/project/authsome/\"><img src=\"https://img.shields.io/pypi/dm/authsome.svg\" alt=\"PyPI downloads\"></a>\n  <a href=\"https://github.com/agentrhq/authsome/actions/workflows/python-test.yml\"><img src=\"https://github.com/agentrhq/authsome/actions/workflows/python-test.yml/badge.svg\" alt=\"Tests\"></a>\n  <a href=\"https://codecov.io/gh/agentrhq/authsome\"><img src=\"https://codecov.io/gh/agentrhq/authsome/branch/main/graph/badge.svg\" alt=\"codecov\"></a>\n  <a href=\"https://discord.gg/9YP2C9tvMp\"><img src=\"https://img.shields.io/badge/Discord-Join-5865F2?logo=discord&logoColor=white\" alt=\"Discord\"></a>\n</p>\n\n<p align=\"center\">\n  <b>Credential Gateway for AI Agents</b>\n</p>\n\n<p align=\"center\">\n  <a href=\"https://authsome.ai/docs\">Docs</a> ·\n  <a href=\"https://authsome.ai\">Website</a> ·\n  <a href=\"https://discord.gg/9YP2C9tvMp\">Discord</a> ·\n  <a href=\"https://github.com/agentrhq/authsome/issues\">Issues</a>\n</p>\n\n---\n\nAn open-source credential gateway that sits between your agents and the services they call. Instead of sharing credentials with every agent, log in once via OAuth2 or API keys. Authsome stores credentials securely and injects them via an HTTP proxy. You get one place to manage access, rotate keys, and see what every agent is doing.\n\nBundled providers out of the box — OAuth2 and API key. [See the full list](https://authsome.ai/docs/reference/bundled-providers).\n\n---\n\n## Demo\n\nhttps://github.com/user-attachments/assets/27f9b229-baf4-4889-be9a-378a133654dc\n\n---\n\n## Why Agents Need Authsome\n\nAgents run beyond interactive sessions. They live in CI, over SSH, in cron jobs, in background workers, and in parallel pipelines. They need API access that survives without a human in the loop.\n\nHardcoded environment tokens leak or go stale, and building auth flow logic, token storage, refresh handling, and per-provider config into every project rebuilds the same plumbing every time.\n\nAuthsome is the credential broker agents call at runtime.\n\n- **No credential sprawl.** One encrypted store. Every provider, every agent, one place.\n- **Agents never see credentials.** Auth is handled outside the agent process — no exfiltration risk, no secrets in environment variables.\n- **No browser required at runtime.** Setup can use browser PKCE, device code, or a browser bridge for secure API key entry. After that, agents run headlessly.\n\n---\n\n## How It Works\n\nThe CLI is the agent's interface: setup once, then inject fresh credentials whenever a tool runs.\n\n<picture>\n  <source media=\"(prefers-color-scheme: dark)\" srcset=\"assets/authsome-how-it-works-dark.svg\">\n  <source media=\"(prefers-color-scheme: light)\" srcset=\"assets/authsome-how-it-works-light.svg\">\n  <img alt=\"Authsome Architecture\" src=\"assets/authsome-how-it-works-light.svg\" width=\"100%\">\n</picture>\n\nAuthenticate once:\n\n```bash\nauthsome login github\n# This opens a browser on user's machine\n# user completes login without sharing the creds with the agent.\n```\n\nThen agents get valid credentials on demand when they try to access external services.\nAll they need to do is use `authsome run --` before the command they want to run:\n\n```bash\nauthsome run -- curl -s \"https://api.github.com/user/repos?per_page=10\"\n# runs behind an auth proxy that injects headers at request time\n# without exposing secrets in the child process environment.\n# matched automatically via provider api_url (e.g. api.openai.com)\n```\n\nCredentials are encrypted at rest and refreshed before expiry.\n\n---\n\n## Why Authsome\n\n| | authsome | Hardcoded env tokens | DIY |\n|--|:--------:|:--------------------:|:---:|\n| Automatic token refresh | ✅ | ❌ | build it |\n| OAuth2 + API keys | ✅ | ❌ | build it |\n| Runtime headless use | ✅ | ✅ | varies |\n| Built-in providers, zero config | ✅ | ❌ | ❌ |\n| Multi-account per provider | ✅ | ❌ | build it |\n| Agents never see credentials | ✅ | ❌ | build it |\n\nAuthsome gives agents one command for a valid token, without scattering long-lived secrets across every project.\n\n---\n\n## Install\n\nRequires Python 3.13+.\n\n```bash\nuv tool install authsome\n```\n\n## Self-hosting\n\nRun a persistent daemon in Docker — no Python required on the host:\n\n```bash\nexport AUTHSOME_POSTGRES_PASSWORD=\"$(openssl rand -hex 24)\"\nexport AUTHSOME_MASTER_KEY=\"$(openssl rand -base64 32)\"\nexport AUTHSOME_UI_SESSION_KEY=\"$(openssl rand -base64 32)\"\ndocker compose up -d\ncurl http://localhost:7998/health\n```\n\nFor a hosted daemon, set `AUTHSOME_BASE_URL` to the public HTTPS URL before starting the stack. See the [self-hosting guide](docs/guides/self-hosting.md) for first-run setup, volume backup, TLS termination, and environment variable reference.\n\n## Quick Start\n\nInstall and run first-time setup (identity, claim, and API key import from `.env`):\n\n```bash\nauthsome onboard\n```\n\nFor a remote daemon, pass `--base-url` once — it is saved in client config for later commands:\n\n```bash\nauthsome onboard --base-url https://authsome.example.com\n```\n\nAdd the authsome skill to your agent (claude, codex, cursor, hermes, etc.):\n\n```bash\nnpx skills add agentrhq/authsome\n```\n\nAnd try a sample task that requires access to external services:\n\n```\nStar the repo agentrhq/authsome\n```\n```\nGet my last 5 emails from gmail\n```\n```\nCheck my stripe balance\n```\n\nThe agent will use authsome to login into external services and perform the task.\n\n## Agent Integrations\n\nAuthsome ships with adapters for the most common agent frameworks and CLIs:\n\n- [Claude Code](https://authsome.ai/docs/integrations/agents/claude-code)\n- [Codex](https://authsome.ai/docs/integrations/agents/codex)\n- [Cursor](https://authsome.ai/docs/integrations/agents/cursor)\n- [OpenCode](https://authsome.ai/docs/integrations/agents/opencode)\n- [LangChain](https://authsome.ai/docs/integrations/agents/langchain)\n- [LlamaIndex](https://authsome.ai/docs/integrations/agents/llamaindex)\n- [OpenAI Agents SDK](https://authsome.ai/docs/integrations/agents/openai-agents-sdk)\n- [Anthropic SDK](https://authsome.ai/docs/integrations/agents/anthropic-sdk)\n\nFull list at [authsome.ai/docs/integrations](https://authsome.ai/docs/integrations/agents/index).\n\n## Community\n\n- **[Discord](https://discord.gg/9YP2C9tvMp)** for questions, help, and showing what you're building.\n- **[GitHub Issues](https://github.com/agentrhq/authsome/issues)** for bugs and feature requests.\n\n## Roadmap\n\nSee [authsome.ai/docs/roadmap](https://authsome.ai/docs/roadmap) for what's shipped, what's next, and what's out of scope.\n\n## Contributing\n\n- **Found a bug?** [Open an issue](https://github.com/agentrhq/authsome/issues/new?template=bug_report.md)\n- **Have an idea?** [Start a discussion](https://github.com/agentrhq/authsome/discussions/new?category=ideas)\n- **Want to contribute?** Read [CONTRIBUTING.md](CONTRIBUTING.md) for development setup, testing, and the engineering principles we follow.\n\n## Links\n\n- **Website:** [authsome.ai](https://authsome.ai)\n- **Docs:** [authsome.ai/docs](https://authsome.ai/docs)\n- **Discord:** [discord.gg/9YP2C9tvMp](https://discord.gg/9YP2C9tvMp)\n- **Issues:** [github.com/agentrhq/authsome/issues](https://github.com/agentrhq/authsome/issues)\n\n## Star History\n\n<a href=\"https://star-history.com/#agentrhq/authsome&Date\">\n  <picture>\n    <source media=\"(prefers-color-scheme: dark)\" srcset=\"https://api.star-history.com/svg?repos=agentrhq/authsome&type=Date&theme=dark\">\n    <source media=\"(prefers-color-scheme: light)\" srcset=\"https://api.star-history.com/svg?repos=agentrhq/authsome&type=Date\">\n    <img alt=\"Star History Chart\" src=\"https://api.star-history.com/svg?repos=agentrhq/authsome&type=Date\">\n  </picture>\n</a>\n\n## License\n\nMIT. See [LICENSE](LICENSE).\n",
  "bytes": 8338,
  "sha": "1aa73fe322b25a6e4701eeb00d32e535174ae60743b0112371c3f6367b52014d",
  "repo_slug": "agentrhq/authsome",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/skl_agentrhq_authsome_authsome_7b48f1dc/readme"
}