Skip to main content
Authsome ships as a Python package, but the supported integration surface for agents is not an in-process credential API. Use one of these paths instead:
  1. authsome run -- <command> — recommended. The proxy injects credentials without exposing secrets to the child process.
  2. authsome export <provider> --format env — when the tool cannot route through an HTTP proxy.
  3. Daemon HTTP API — when you are building tooling that talks to the local daemon over PoP-authenticated HTTP.
The CLI plus proxy covers almost every workflow. Drop to export or the HTTP API only when embedding authsome in custom orchestration or non-Python runtimes. See Run agents with the proxy.

Install

Python 3.13 or newer.

Quick start (proxy)

Your script reads placeholder env vars; the proxy substitutes real credentials on outbound HTTP requests. No authsome import required in the script.

Quick start (export)

Refresh is handled by the daemon. Re-run export when you need fresh values in a long-lived shell.

Quick start (daemon HTTP API)

The CLI and proxy both call the daemon at http://127.0.0.1:7998/api/... with PoP JWT authentication. Every protected request carries Authorization: PoP <jwt> signed by the local Ed25519 identity key.
See HTTP daemon API for every route. For programmatic PoP signing, follow src/authsome/cli/client.py in the repository — that client is the reference implementation.

Public package exports

The top-level authsome package re-exports models, errors, and the Vault interface for tests and advanced embedding:
CredentialService (the daemon’s credential lifecycle coordinator) lives in authsome.server and is constructed by the daemon’s dependency injection layer. It is not a supported public embedding API.

Vault

A minimal encrypted key-value interface. Credential records are stored under keys like vault:<vault_id>:<provider>:connection:<name>. Direct vault access is rare outside tests:
Prefer the CLI or daemon API; they manage encryption, refresh, and Principal/Vault authorization for you.

Errors

All exceptions subclass AuthsomeError. Common ones: Exit codes in CLI reference map one-to-one to these classes.

When to use which surface

What’s next

Architecture

Identity, Vault, Principal, and the daemon.

HTTP daemon API

Every route the daemon exposes.