> For the complete documentation index, see [llms.txt](https://docs.avis.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.avis.net/integrations/overview.md).

# Overview

Key takeaways

AVIS works with the AI tools you already use: coding agents, AI assistants, editors and chat interfaces. Because AVIS exposes OpenAI-, Anthropic- and Gemini-compatible APIs, most tools only need a new **base URL** and **API key** to reach the 300+ models in the AVIS catalog. No code changes are required.

***

## How it works

Each tool speaks a particular API protocol. Point it at the AVIS surface that matches:

| AVIS surface         | Base URL                             | Used by                                                  |
| -------------------- | ------------------------------------ | -------------------------------------------------------- |
| OpenAI-compatible    | `https://api.avis.net/api/openai/v1` | Codex CLI, Copilot CLI, OpenCode, Hermes Agent, OpenClaw |
| Anthropic-compatible | `https://api.avis.net/api/anthropic` | Claude Code, OpenClaw, Copilot CLI (optional)            |
| Gemini-compatible    | `https://api.avis.net/api/gemini`    | Gemini CLI                                               |

Every surface accepts every model in the AVIS catalog, and the same API key works on all three. See [Introduction](https://docs.avis.net/api-reference/introduction.md) and [Authentication](https://docs.avis.net/api-reference/introduction/authentication.md).

***

## Available integrations

### Agent Coding

Terminal agents that read and edit files and run commands in your project.

| Tool            | AVIS surface          | Where you configure it                                                                     | Guide                                                                   |
| --------------- | --------------------- | ------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------- |
| **Claude Code** | Anthropic             | `ANTHROPIC_BASE_URL` and `ANTHROPIC_AUTH_TOKEN` env vars, or `.claude/settings.local.json` | [Claude Code](https://docs.avis.net/integrations/coding/claude-code.md) |
| **Codex CLI**   | OpenAI (`/responses`) | `~/.codex/config.toml`                                                                     | [Codex CLI](https://docs.avis.net/integrations/coding/codex.md)         |
| **Copilot CLI** | OpenAI or Anthropic   | `COPILOT_PROVIDER_*` env vars (BYOK)                                                       | [Copilot CLI](https://docs.avis.net/integrations/coding/copilot.md)     |
| **Gemini CLI**  | Gemini                | `GEMINI_API_KEY` and `GOOGLE_GEMINI_BASE_URL` env vars                                     | [Gemini CLI](https://docs.avis.net/integrations/coding/gemini-cli.md)   |
| **OpenCode**    | OpenAI                | `opencode.json`                                                                            | [OpenCode](https://docs.avis.net/integrations/coding/opencode.md)       |

### Assistant

Autonomous AI assistants that run on your machine and carry out tasks for you.

| Tool                             | AVIS surface        | Where you configure it                            | Guide                                                                        |
| -------------------------------- | ------------------- | ------------------------------------------------- | ---------------------------------------------------------------------------- |
| **OpenClaw**                     | Anthropic or OpenAI | `openclaw onboard` or `~/.openclaw/openclaw.json` | [OpenClaw](https://docs.avis.net/integrations/assistant/openclaw.md)         |
| **Hermes Agent** (CLI & Desktop) | OpenAI              | `hermes model` or `~/.hermes/config.yaml`         | [Hermes Agent](https://docs.avis.net/integrations/assistant/hermes-agent.md) |

### IDEs & Editors

| Tool        | How you use it                                           | Guide                                                                                   |
| ----------- | -------------------------------------------------------- | --------------------------------------------------------------------------------------- |
| **VS Code** | Pick AVIS models in the GitHub Copilot Chat model picker | [VS Code Studio](https://docs.avis.net/integrations/ides-and-editors/vs-code-studio.md) |

### Chat & RAG

| Tool     | How you use it                                                      | Guide                                                           |
| -------- | ------------------------------------------------------------------- | --------------------------------------------------------------- |
| **Onyx** | Self-hosted chat UI; select `avis` as the LLM provider during setup | [Onyx](https://docs.avis.net/integrations/chat-and-rag/onyx.md) |

***

## Steps that apply to every integration

1. **Create an API key** at [avis.net](https://avis.net) → **Settings → API Keys**, and set spend limits on it. See [How to get API Key](https://docs.avis.net/guide/get-started/avis-api-key.md).
2. **Top up your balance** so the key has credits to spend. See [How to top up your balance](https://docs.avis.net/guide/get-started/avis-topup.md).
3. **Point the tool at AVIS** using the base URL of the matching surface (table above) and your API key.
4. **Pick a model** by querying that surface's own catalog, for example `GET /api/openai/v1/models`. Model ID formats can differ between surfaces, so don't copy an ID from one surface to another.
5. **Send a test message** to confirm the tool is calling AVIS.

> **Tip:** Use a separate API key for each tool. If one key leaks, you revoke only that key without breaking your other integrations.

***

## Common troubleshooting

| Symptom                                                    | Usual cause                                                                               | What to do                                                                                       |
| ---------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------ |
| `401 Unauthorized`                                         | The key isn't set in the shell the tool runs in, or it's wrong or revoked                 | Test it directly: `curl -H "x-api-key: $AVIS_API_KEY" https://api.avis.net/api/openai/v1/models` |
| `403 Forbidden`                                            | Your credit balance is used up                                                            | Top up your balance                                                                              |
| `404` / model not found                                    | The model ID doesn't match the catalog of the surface you're using                        | Query `/models` on the correct surface again                                                     |
| Requests still go to the original provider instead of AVIS | An old sign-in session in the tool is still active, or the env vars/config weren't loaded | Sign out of the old session and restart the tool after changing its config                       |

Each guide has its own detailed troubleshooting section for that tool. See also [Errors](https://docs.avis.net/api-reference/introduction/errors.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.avis.net/integrations/overview.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
