unbound-claude-code
Version:
Claude Code with Unbound integration - Drop-in replacement for Claude Code with multi-provider routing and cost optimization
44 lines • 1.35 kB
TypeScript
#!/usr/bin/env node
/**
* Unbound Code CLI
*
* A Claude CLI wrapper that acts as a proxy to Unbound AI.
* It intercepts API calls to Anthropic and sends them to Unbound AI.
* It also provides a CLI interface for managing the Unbound AI API key and model.
*/
declare class UnboundCli {
private auth;
private storage;
constructor();
private parseArgs;
private showHelp;
private showVersion;
/**
* Read the model configuration from Claude Code
* This reads from ~/.claude/settings.json and environment variables
* to determine what model Claude Code is using
*/
private getClaudeCodeModel;
private showConfig;
private clearConfig;
private configure;
private displayStartupConfig;
private checkClaudeCode;
private checkAndInstallClaudeCode;
/**
* Sets up Claude configuration files to use Unbound API key
* Creates ~/.claude/settings.json with apiKeyHelper configuration
* Creates ~/.claude/anthropic_key.sh with the API key
*/
private setupClaudeConfig;
private promptVertexConfiguration;
/**
* Store API key only (for --api-key flag)
*/
private storeApiKey;
private authenticateUser;
private launchClaudeCode;
run(args: string[]): Promise<void>;
}
export { UnboundCli };
//# sourceMappingURL=cli.d.ts.map