@xpenso/cli
v1.0.1
Published
Universal AI Coding Provider Connector & Setup Wizard for Xpenso AI Gateway
Downloads
76
Maintainers
Readme
@xpenso/cli
Universal AI Provider Gateway Connector & Setup Wizard for Xpenso.in
@xpenso/cli is the official command-line interface and configuration wizard for Xpenso AI Gateway. It automatically connects local AI coding tools (Claude Code, OpenCode, Codex CLI, Gemini CLI, or Custom agents) to Xpenso High-Performance Gateway with zero manual configuration.
Quickstart
Run the automated interactive setup wizard directly from any terminal:
npx -y @xpenso/cli@latestCommands Overview
| Command | Purpose |
| :--- | :--- |
| npx -y @xpenso/cli@latest | Run interactive setup wizard |
| xpenso init | Initialize & configure Xpenso (supports --non-interactive) |
| xpenso login | Authenticate & save Xpenso API key |
| xpenso configure [system] | Configure target tool (claude-code, opencode, codex, gemini-cli, custom) |
| xpenso status | View connected tools, latency, & wallet credits |
| xpenso doctor | Run environment, permissions, & network diagnostics |
| xpenso logout | Remove saved credentials safely |
Non-Interactive Automation (CI/CD)
For automated setups or CI/CD pipelines:
XPENSO_API_KEY=sk_live_... xpenso init --non-interactive --system claude-codeSecurity & Privacy
- Restricted Storage Permissions: API keys are stored in
~/.config/xpenso/credentials.jsonwith strict0600file permissions. - Timestamped Backups: Before modifying any tool configuration, a backup is created in
~/.config/xpenso/backups/. - Automated Rollback: If live completion verification fails, the original configuration is restored automatically.
License
MIT © Xpenso.in
