authsome

Tools & Infrastructure 💻 Python ⚖️ MIT 🟢 Actively maintained
87 stars

Authsome is an open-source credential gateway for AI agents. It securely stores OAuth2 tokens and API keys, then injects them via an HTTP proxy when agents run commands, so agents never see raw credentials. It solves credential sprawl and token refresh for headless agent workflows.

✨ Key features

  • Secure encrypted credential store for all providers
  • Automatic token refresh before expiry
  • Supports OAuth2 and API key providers out of the box
  • HTTP proxy injects credentials without exposing secrets
  • Multi-account support per provider
  • Agent integrations for Claude Code, Codex, Cursor, and more

🎯 Use cases

  • Let agents access GitHub, Gmail, or Stripe without hardcoded tokens
  • Run CI/CD pipelines that need authenticated API calls
  • Manage credentials centrally for multiple agents and services
  • Enable headless agents to authenticate via OAuth2 flows

📦 Installation

🧰 Requirements: Requires Python 3.13+ for CLI installation; self-hosting requires Docker and environment variables for Postgres and encryption keys.

uv tool install authsome

🚀 Usage

authsome login github
authsome run -- curl -s "https://api.github.com/user/repos?per_page=10"

❓ FAQ

How does authsome keep credentials secure?

Credentials are encrypted at rest and injected via an HTTP proxy, so agents never see them in environment variables or process environments.

Can I use authsome with my existing agent framework?

Yes, authsome provides adapters for Claude Code, Codex, Cursor, OpenCode, LangChain, LlamaIndex, OpenAI Agents SDK, and Anthropic SDK.

Does authsome support multiple accounts for the same provider?

Yes, it supports multi-account per provider, allowing you to switch between different user accounts.

How do I self-host authsome?

You can run a persistent daemon in Docker using docker compose up -d after setting required environment variables like AUTHSOME_POSTGRES_PASSWORD and AUTHSOME_MASTER_KEY.

📊 Repository

Stars★ 87
Forks🍴 9
Open issues🐛 11
Last commit🕒 Jul 24, 2026
Created📅 Apr 2026
Language💻 Python
License⚖️ MIT

🤖 Overview, features, install steps and FAQ were generated from the project's README on Sep 4, 2026. Always check the original source before running commands.