Copied to clipboard

tapes auth

Store API credentials for LLM providers. Credentials are saved in ~/.tapes/credentials.toml and automatically injected when launching agents via tapes start.

Usage

# Store an OpenAI API key
tapes auth openai

# Store an Anthropic API key
tapes auth anthropic

# List stored providers
tapes auth --list

# Remove a stored key
tapes auth --remove openai

Supported Providers

Provider Environment Variable
openai OPENAI_API_KEY
anthropic ANTHROPIC_API_KEY

Flags

Flag Description
--list List providers with stored credentials
--remove <provider> Remove stored credentials for a provider
--config-dir Override path to .tapes/ config directory

Codex Integration

When using tapes start codex, tapes requires a stored OpenAI API key. Codex ignores OPENAI_API_KEY environment variables when OAuth tokens exist in ~/.codex/auth.json. To work around this, tapes temporarily patches the auth file with your stored key during the session and restores it when the agent exits.

Important: Personal project keys (sk-proj-) from OpenAI may lack required API scopes. Use a service account key (sk-svcacct-) for Codex proxy telemetry.

Last updated: