# Repository Briefing: agentrhq/authsome
> Source: https://repoforai.com/repo/agentrhq/authsome (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/agentrhq/authsome
- **Official Docs / Website**: https://authsome.ai/docs
- **Category**: Agents & Frameworks (智能体与框架)
- **Primary Language**: Python
- **License**: MIT
- **Engineering Health**: B (58/100 · Maintenance 12/35 · Adoption 12/25 · Releases 14/20 · License 20/20)
- **Latest Release**: authsome-v0.7.2 (2026-06-17) — https://github.com/agentrhq/authsome/releases
- **Review Snapshot**: 2026-12-03
- **Deployment / Stack Signals**: Docker, Self-Hosted, CLI
- **Momentum**: 109 ★ total (+0 24h / +2 7d) · 14 forks
- **Topics**: `ai-agents`, `authentication`, `cli`, `headless`, `local-first`, `mcp`, `oauth2`, `agent-identity`, `agent-security`, `claude-code`, `credential-manager`, `hermes-agent`
- **When to Use**: Best for: Teams running headless agents in CI, scheduled jobs, or background workers that need supported APIs without distributing upstream credentials to each process. Skip if: 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.

## Overview
```text
### Architecture & 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.
```

## Key Capabilities
```text
- Credential boundary: The HTTP proxy attaches upstream credentials without passing the raw secrets to the wrapped agent process.
- Headless execution: Browser PKCE, device code, or browser-assisted API-key entry can be used at setup; routine calls run without a browser.
- Provider routing: `authsome run --` wraps tool commands, and provider API URLs drive automatic matching.
- Connection management: OAuth2 and API-key connections share an encrypted store, with multi-account support and refresh for eligible tokens.
- Agent integrations: Adapters cover tools such as Claude Code, Codex, and Cursor, as well as SDKs and frameworks such as OpenAI Agents SDK, LangChain, and LlamaIndex.
- Self-hosted operations: Docker Compose includes PostgreSQL 16 and Redis 7 with persistent volumes; the gateway exposes a `/health` endpoint.
```

## Quick Start / Clone
```bash
uv tool install authsome
```
