agentrhq/authsome
A self-hosted HTTP credential gateway that keeps API secrets out of agent processes
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Authsome separates the agent that requests access from the component that holds upstream credentials. An operator establishes an OAuth2 or API-key connection, and an agent invokes a tool through authsome run --. The HTTP proxy matches the destination against a provider's API URL and adds authentication on the outbound request. The agent can exercise the connection's permissions without receiving the raw upstream secret through that path.
The Python package targets 3.13+ and lists pydantic, pydantic-settings, requests, cryptography, and keyring among its dependencies. The repository contains src/, ui/, skills/, and .claude-plugin/, covering the package, web UI, and agent-facing integration assets. The CLI, provider definitions, and agent adapters are the visible integration points; the presence of those adapters does not imply transparent support for arbitrary network clients or protocols.
Key Capabilities & Differentiators
Bundled providers support OAuth2 and API keys, including multiple accounts per provider. Initial setup can use browser-based PKCE, device-code authorization, or a browser bridge for API-key entry. Credentials are encrypted at rest, and renewable tokens are refreshed before expiry, allowing scheduled jobs and background workers to operate without a browser during normal execution. That refresh behavior does not imply automatic rotation of static API keys or indefinite access after upstream revocation.
authsome onboard sets up identity and claim and supports importing API keys from .env; --base-url connects the CLI to a remote daemon and saves that endpoint for later use. Integrations include Claude Code, Codex, Cursor, OpenCode, LangChain, LlamaIndex, and the OpenAI and Anthropic SDK ecosystems. Provider coverage and agent integration are separate questions: verify both the target provider's authentication flow and whether the chosen tool sends requests through the proxy.
Trade-offs & Limitations
A scoped environment token remains the simpler option for one trusted job that already has a rotation process. Authsome becomes more compelling when several agents need provider access and would otherwise each implement OAuth setup, storage, and refresh. Compared with a custom integration, the bundled providers and wrappers reduce repeated work, but introduce a proxy hop and a shared dependency. If a central daemon is unavailable, every workflow that relies on it can lose access to upstream services.
Keeping raw secrets out of the agent process is not the same as preventing misuse: an agent can still act within the permissions of its connection. Before sharing a deployment across teams or trust boundaries, verify agent-to-connection authorization, multi-account selection and fallback, and whether audit records support incident review. The package is MIT-licensed and marked Alpha; the breaking onboarding change in 0.7.0 is a practical reason to pin versions and test upgrades before rolling them out.
Hardware & Deployment Guide
For local CLI use, provide Python 3.13+ and install with uv tool install authsome, then run authsome onboard. The Docker path runs a persistent daemon without requiring host Python. The Compose stack includes postgres:16-alpine and redis:7-alpine, each with a persistent volume; Redis is configured with append-only persistence. Set AUTHSOME_POSTGRES_PASSWORD, AUTHSOME_MASTER_KEY, and AUTHSOME_UI_SESSION_KEY before launching with docker compose up -d, and check http://localhost:7998/health.
For remote hosting, set AUTHSOME_BASE_URL to the public HTTPS URL and plan for TLS termination, secret management, persistent-volume backups, and recovery tests. No local inference hardware is indicated, but self-hosting does not make provider logins or API calls work offline. Version 0.7.0 made a breaking CLI change by replacing init and scan with authsome onboard and added an authentication session store contract. Versions 0.7.1 and 0.7.2 focused on UI changes, including updates to connection, provider, and settings pages and an agent detail view.
authsome run -- wraps tool commands, and provider API URLs drive automatic matching./health endpoint.Teams running headless agents in CI, scheduled jobs, or background workers that need supported APIs without distributing upstream credentials to each process.
A single narrowly scoped token already meets your needs, your traffic cannot use the HTTP proxy, or you require verified tenant isolation and audit controls that you have not validated in this deployment.
Quick Start & Installation
uv tool install authsomeComparison vs. Top Agents & Frameworks Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| authsome ★ | 109 | +2 | Python | MIT | A self-hosted HTTP credential gateway that keeps API secrets out of agent proces |
| n8n | 213.1k | +787 | TypeScript | — | Visual Node.js platform for self-hosted workflows and multi-step AI agents |
| hermes-agent | 268.1k | +1.5k | Python | MIT | Self-hosted Python agent with persistent memory and automation across chat and C |
| Vibe-Trading | 39.6k | +490 | Python | MIT | A self-hosted trading agent for evidence-linked research and inspectable backtes |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/agentrhq/authsome.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about authsome
How does an existing agent use a connection without receiving the upstream secret?
authsome run --. The proxy matches the destination against provider API URLs and attaches credentials on the outbound request. Test the actual client and endpoints you intend to use; a working curl example does not establish compatibility with every SDK or transport.What hardware and runtime overhead should I budget for?
Can we use Authsome commercially and self-host it for compliance?
When is Authsome preferable to direct API tokens or a custom integration?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy