config.yaml, then point your OpenAI- or Anthropic-compatible clients at the local proxy. CLIProxyAPI is a self-hosted proxy that exposes OpenAI-, Anthropic-, and Gemini-compatible endpoints and fans requests out to configured backends.
Install
Download a binary from the releases page, or run the Docker image. See the guides for platform specifics.Get an API key
Create anak_... key in the console.
Configure
Add abliteration toconfig.yaml. The openai-compatibility block is the most portable; add claude-api-key too if you want to reach abliteration through Anthropic-protocol clients.
api-keys are the credentials your local clients present to the proxy. Your abliteration ak_... key stays server-side in the api-key-entries / claude-api-key blocks and is never exposed to clients.Run
http://localhost:8317 by default.
Point your tools at the proxy
- OpenAI SDK / Codex
- Claude Code
Set the base URL to the local proxy and use one of your Request the model by its alias,
api-keys:abliterated-model.Verify
Notes
- Only
abliterated-modelis available upstream; alias it to whatever name your clients expect. - Policy rules attached to your
ak_...key apply to every request the proxy forwards. - CLIProxyAPI can load-balance multiple
api-key-entries— add more keys to spread load.