Usage
Description
Manage authentication credentials for LLM providers. Esprit supports OAuth-based login for major providers and API key configuration for direct access.Subcommands
login
Authenticate with an LLM provider via OAuth or API key.Provider to authenticate with. If omitted, displays an interactive selection menu.Supported providers:
esprit- Esprit Subscription (Bedrock via Esprit proxy)antigravity- Antigravity (Free Claude/Gemini)opencode- OpenCode Zenopenai- OpenAI ChatGPT Plus/Pro (Codex)anthropic- Anthropic Claude Pro/Maxgithub-copilot- GitHub Copilotgoogle- Google Gemini
- Opens browser to provider authorization page
- User completes authentication
- Credentials are securely stored locally
openai and antigravity support multiple accounts with automatic rotation.
logout
Remove authentication credentials for a provider.Provider to logout from. If omitted, displays an interactive selection menu.For multi-account providers, you can choose to:
- Remove a specific account
- Remove all accounts
status
Display authentication status for all providers.- Provider name
- Authentication status (logged in / not configured)
- Authentication type (OAuth / API key / Platform)
- Account details (email, plan, number of accounts)
- Token expiration warnings
api-key
Set an API key directly for a provider (alternative to OAuth).Provider to configure. If omitted, displays an interactive selection menu.Note: Not available for
esprit provider (uses platform credentials).~/.esprit/providers.json.
Exit Codes
- 0: Command completed successfully
- 1: Authentication failed or invalid provider
Examples
Interactive provider selection
Login to specific provider
Login with GitHub Enterprise (Copilot)
Check authentication status
Logout from provider
Set API key
Add multiple accounts (rotation)
Provider Details
Esprit Subscription
Authentication: Platform OAuthFeatures: Access to AWS Bedrock models via Esprit Cloud
Plans: Free, Pro, Team, Enterprise
Antigravity
Authentication: OAuth (multi-account)Features: Free access to Claude and Gemini models
Rotation: Automatically rotates between accounts for rate limiting
OpenCode Zen
Authentication: API keyFeatures: Access to OpenCode models
Public models: Some models available without authentication
OpenAI Codex
Authentication: OAuth (multi-account) or API keyFeatures: ChatGPT Plus/Pro models
Rotation: Supports multiple accounts
Anthropic Claude
Authentication: OAuth or API keyFeatures: Claude Pro/Max models
GitHub Copilot
Authentication: OAuthFeatures: Copilot models
Enterprise: Supports custom GitHub Enterprise URLs
Google Gemini
Authentication: OAuth or API keyFeatures: Gemini models
Configuration Files
Provider credentials are stored in:- OAuth tokens:
~/.esprit/providers.json - Account pool:
~/.esprit/account_pool.json - Platform credentials:
~/.esprit/credentials.json(Esprit subscription)
Security
- Credentials are stored locally on your machine
- OAuth tokens are automatically refreshed when expired
- API keys are stored in plaintext (secure file permissions recommended)
- No credentials are sent to third parties except during OAuth flows
Related Commands
esprit scan- Run a penetration test (requires configured provider)