Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

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 and Authentication.


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

Codex CLI

OpenAI (/responses)

~/.codex/config.toml

Copilot CLI

OpenAI or Anthropic

COPILOT_PROVIDER_* env vars (BYOK)

Gemini CLI

Gemini

GEMINI_API_KEY and GOOGLE_GEMINI_BASE_URL env vars

OpenCode

OpenAI

opencode.json

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

Hermes Agent (CLI & Desktop)

OpenAI

hermes model or ~/.hermes/config.yaml

IDEs & Editors

Tool
How you use it
Guide

VS Code

Pick AVIS models in the GitHub Copilot Chat model picker

Chat & RAG

Tool
How you use it
Guide

Onyx

Self-hosted chat UI; select avis as the LLM provider during setup


Steps that apply to every integration

  1. Create an API key at avis.net → Settings → API Keys, and set spend limits on it. See How to get API Key.

  2. Top up your balance so the key has credits to spend. See How to top up your balance.

  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.

Last updated

Was this helpful?