workflowstacks
ai-agent

CLIProxyAPI: Free AI Models

Access free Gemini, GPT, Grok, Claude models through API, for startup founders, backed by 45k+ GitHub stars
44,646 stars6,986 forksGoHealth Score 9/10Updated 7/24/2026100% free · open source
What it does

CLIProxyAPI allows startup founders to access free Gemini, GPT, Grok, and Claude models through a unified API service, compatible with OpenAI, Gemini, Claude, and Codex

Install / run
go run main.go
When to use it
  • When you need to integrate AI models into your startup's application without incurring significant costs
  • When you want to leverage the capabilities of multiple AI models through a single, unified API
  • When you are looking for an open-source alternative to proprietary AI model APIs
Quick start
  1. 1Clone the repository from https://github.com/router-for-me/CLIProxyAPI
  2. 2Navigate to the project directory and run 'go run main.go' to start the API service
  3. 3Use a tool like curl to test the API, for example: 'curl -X POST -H 'Content-Type: application/json' -d '{'prompt': 'Your prompt here'}' http://localhost:8080/v1/complete'
  4. 4Modify the config.json file to customize the API settings and model configurations
  5. 5Test the different AI models, such as Gemini, GPT, Grok, and Claude, by sending requests to the corresponding endpoints
Ready-to-paste prompt
curl -X POST -H 'Content-Type: application/json' -d '{'prompt': 'Write a product description for a new smartwatch'}' http://localhost:8080/v1/complete
Heads up: Make sure you have Go installed on your system, as CLIProxyAPI is written in Go and requires it to run. You can download the latest version from the official Go website if you haven't already.
Saves to your device

Topics

antigravity
claude-code
cluade
codex
gemini
openai
How CLIProxyAPI: Free AI Models works
Codeflow
Free to inspect

CLIProxyAPI: Free AI Models is a very large Go project (~352k lines across 1192 code files, plus 6 test files). It is a full software project: use it through its install path rather than reading it end to end. Last commit this month, MIT license, has a test suite.

Size
Very large codebase
~352k lines · 1192 code files · days to read — use, don't read
Setup
Developer setup
A real software project. Use it via its install path; don't expect to read it all.
Runs on
Go · Docker
Needs API keys (.env)
Go 100%
Where to start reading
  1. 1
    README.md
    Start here — what it does and how to install it
  2. 2
    AGENTS.md
    The instructions the AI actually follows
  3. 3
    cmd/server/main.go
    Where the program starts running
  4. 4
    go.mod
    Dependencies and the commands it exposes
  5. 5
    .env.example
    The API keys and settings you must provide
What's in each folder
internal/Core code — the actual logic855 files
cmd/Command-line entry points6 files
examples/Examples you can copy143 files
docs/Documentation8 files
sdk/SDKs / client libraries259 files
auths/Folder1 files
assets/Images & static assets25 files
.github/CI / automation (GitHub Actions)9 files
READMEHas testsDocumentedCI checksDocker readyExamples includedMIT licenseUpdated this month
Quick Actions
Details
Creator
router-for-me
Language
Go
Category
ai-agent
Published
7/1/2025

Are you the creator of this tool? Claim your listing → and earn 85% of every sale.