aicoolies logo

CLIProxyAPI

Self-hosted proxy API for routing AI CLI accounts into OpenAI-compatible endpoints

Share
open-sourceOpen SourceTelemetry Concerns
Visit Website →

CLIProxyAPI is an open-source Go proxy server that wraps Gemini CLI, Claude Code, OpenAI Codex, Grok Build, and related CLI account flows behind OpenAI/Gemini/Claude-compatible API endpoints. Use it carefully: it can touch OAuth sessions, auth files, logs, and provider account policies, so production use needs credential and ToS review.

CLIProxyAPI is an open-source Go proxy server that turns local AI CLI account flows into OpenAI-, Gemini-, Claude-, Codex-, and Grok-compatible API endpoints. The project is aimed at developers who want a self-hosted routing layer around tools such as Gemini CLI, Claude Code, OpenAI Codex, Grok Build, Amp CLI, and IDE extensions, with support for streaming responses, tool/function calling, multimodal input where supported, and round-robin account selection.

The practical fit is internal experimentation, local agent infrastructure, and cost-control workflows where a team already understands the account and provider policies behind the CLIs being proxied. Its repository and docs describe Docker deployment, a management API, OAuth login flows, configurable upstream providers, and a Go SDK for embedding the routing/authentication layer in another service.

The risk profile is higher than a normal vendor SDK. CLIProxyAPI can handle OAuth sessions, local auth files, multi-account routing, and third-party relay/sponsor paths, so teams should verify provider terms of service, credential storage, logs, network exposure, and compliance requirements before using it in production. Treat it as a self-hosted proxy/routing utility rather than a guaranteed free or officially endorsed model-access plan.

Pricing

Open-source MIT project. The proxy software is free to self-host, but model access, CLI subscriptions, API relay services, and any provider account usage remain separate and must be reviewed against the relevant provider terms.

Platforms

Self-hosted Go/Docker server with configurable API endpoints, local auth storage, management API options, and a reusable Go SDK; intended for developers running AI CLI and agent workflows on their own infrastructure.

Categories

Tags

Use Cases

Related Tools

Grok logo

Grok Build

Top Pick

xAI's terminal coding agent with parallel subagents and worktree-aware automation

Grok Build is xAI's terminal-first coding agent for planning, editing, testing, and reviewing code from a local CLI. The early beta exposes subagent controls, worktree mode, headless JSON output, best-of-N parallel attempts, sandbox profiles, and experimental memory. It fits developers comparing Claude Code, Codex, and Gemini CLI for local agentic workflows with deeper parallel execution.

paid
Warp logo

Warp

Top Pick

The modern terminal with AI

GPU-accelerated terminal built in Rust, now evolved into an Agentic Development Environment (ADE) used by 700K+ developers. Features block-based output navigation, AI command suggestions via the Oz orchestration engine, multi-line editing with syntax highlighting, and a built-in code editor with LSP support. Available on macOS, Linux, and Windows. Includes Warp Drive for sharing workflows, real-time session collaboration, and BYOK support for OpenAI, Anthropic, and Google API keys.

freemiumTelemetry
Ghostty logo

Ghostty

Top Pick

Fast, native terminal emulator

GPU-accelerated terminal emulator written in Zig by Mitchell Hashimoto (HashiCorp co-founder). Native UI rendering on macOS and Linux. Supports ligatures, true color, Kitty graphics protocol, and splits/tabs. Configurable via a simple key-value file with sensible defaults. Open-source with 20K+ GitHub stars and a focus on correctness, speed, and minimal resource usage. Growing as a modern alternative to iTerm2, Alacritty, and WezTerm.

open-sourceOpen Source
Claude Code logo

Claude Code

Top Pick

Anthropic's agentic coding CLI

Anthropic's agentic CLI coding tool that delegates complex tasks to Claude directly from the terminal. Understands entire codebases via automatic context gathering, edits multiple files, runs shell commands, and manages Git workflows autonomously. Supports CLAUDE.md for persistent project instructions, integrates with VS Code and JetBrains, and uses Claude Opus/Sonnet with extended thinking for complex architectural decisions. Built for terminal-first developers.

paidOpen Source
Hermes Agent logo

Hermes Agent

Top Pick

Open-source AI agent framework with persistent memory, reusable skills, tools, and messaging gateways

Hermes Agent is an open-source AI agent framework with persistent memory, reusable skills, 40+ tools, cron jobs, and messaging gateways.

open-sourceOpen Source
pi dev code

Pi

Top Pick

Minimal terminal coding harness

Pi is an open-source minimalist coding agent built by Mario Zechner that runs in the terminal with an intentionally lean design — just four core tools (read, write, edit, bash) and a ~300-word system prompt. It treats the context window as scarce, omits sub-agents and MCP by default, and pushes extensibility to TypeScript extensions, skills, and prompt templates developers build for their own needs. A radical counterpoint to bloated AI coding tools.

open-sourceOpen Source