> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abliteration.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Use CC Switch with abliteration.ai

> Add abliteration.ai as a provider in CC Switch and point Claude Code or Codex at its Anthropic- and OpenAI-compatible API in one click.

**To use abliteration.ai with [CC Switch](https://github.com/farion1231/cc-switch)**, add abliteration as a provider, then switch to it. CC Switch writes the config into Claude Code or Codex for you — no manual editing of `settings.json` or `config.toml`.

CC Switch is a desktop app that stores multiple provider configurations for Claude Code, Codex, and other coding tools, and swaps the active one into each tool's config on demand.

## Install

Download the desktop app from the [releases page](https://github.com/farion1231/cc-switch/releases) (macOS, Windows, Linux), or build from [source](https://github.com/farion1231/cc-switch).

## Get an API key

Create an `ak_...` key in the [console](https://abliteration.ai/console). You'll paste it into CC Switch below.

## Add abliteration.ai as a provider

Open CC Switch, pick the tool you want to route (**Claude Code** or **Codex**), and add a new provider with these values.

<Tabs>
  <Tab title="Claude Code">
    abliteration.ai implements the Anthropic Messages API, so Claude Code talks to it natively.

    | Field      | Value                         |
    | ---------- | ----------------------------- |
    | Name       | `Abliteration`                |
    | Base URL   | `https://api.abliteration.ai` |
    | Auth token | your `ak_...` key             |
    | Model      | `abliterated-model`           |

    CC Switch writes this into Claude Code's `settings.json` as:

    ```json theme={"system"}
    {
      "env": {
        "ANTHROPIC_BASE_URL": "https://api.abliteration.ai",
        "ANTHROPIC_AUTH_TOKEN": "ak_YOUR_API_KEY",
        "ANTHROPIC_MODEL": "abliterated-model",
        "ANTHROPIC_DEFAULT_HAIKU_MODEL": "abliterated-model",
        "ANTHROPIC_DEFAULT_SONNET_MODEL": "abliterated-model",
        "ANTHROPIC_DEFAULT_OPUS_MODEL": "abliterated-model"
      }
    }
    ```

    <Note>
      abliteration.ai serves a single model, `abliterated-model`. Mapping every Claude tier (Haiku/Sonnet/Opus) to it means Claude Code routes to abliteration.ai no matter which tier it selects.
    </Note>
  </Tab>

  <Tab title="Codex">
    Codex uses the OpenAI-compatible surface.

    | Field    | Value                            |
    | -------- | -------------------------------- |
    | Name     | `Abliteration`                   |
    | Base URL | `https://api.abliteration.ai/v1` |
    | API key  | your `ak_...` key                |
    | Model    | `abliterated-model`              |

    CC Switch writes this into `~/.codex/config.toml` (with `wire_api = "responses"`) and exports your key for Codex to read. See the [Codex guide](/integrations/codex) for the underlying config.
  </Tab>
</Tabs>

## Switch to it

Select the **Abliteration** provider in CC Switch and apply it. CC Switch updates the target tool's config in place. Restart Claude Code or Codex if it was already running so it picks up the new provider.

## Verify

```sh theme={"system"}
# Claude Code
claude "say hello in one word"

# Codex
codex --profile abliteration "say hello in one word"
```

A normal completion confirms traffic is routed through abliteration.ai.

## Notes

* Your `ak_...` key stays local — CC Switch writes it only into the tool's own config file.
* Policy rules attached to your API key apply to every request.
* A built-in **Abliteration** preset for CC Switch's provider list is planned; until it ships, use the custom-provider values above.
