All tools

Connect Use in your own code

AdvancedSDK snippet

Call Ahrigate directly with the OpenAI SDK in your own Python or Node code

Connect Use in your own code through api.ahrigate.com. Choose a model and a key assigned to its provider’s supply group.


Get your API key

Create an Ahrigate API key in the console and pick its supply group. The key is shown once at creation.

Get an API key

Connect it

Base URLhttps://api.ahrigate.com/v1
API Keyyour key (from Console)Get key →
Modelclaude-opus-5-5

Connection settings

example.py
# Install: python -m pip install openai
# Set AHRIGATE_API_KEY in your environment before running.
import os
from openai import OpenAI

client = OpenAI(api_key=os.environ["AHRIGATE_API_KEY"], base_url="https://api.ahrigate.com/v1")
response = client.chat.completions.create(
    model="claude-opus-5-5",
    messages=[{"role": "user", "content": "Hello from Ahrigate!"}],
)
print(response.choices[0].message.content)

Use a key from the model’s supply group. Merge configuration into existing settings, then send a short test message and confirm it in Console → Usage.

Ask your agent to help configure
Prompt · no real key included
Configure Use in your own code to use the OpenAI-compatible Chat Completions interface of the Ahrigate gateway.

Base URL:  https://api.ahrigate.com/v1
API Key:   sk-YOUR-AHRIGATE-KEY  (I'll paste my real key)
Model:     claude-opus-5-5

First check the official guide for my installed version: https://developers.openai.com/api/docs/libraries.
Preserve existing settings and merge only this provider. I will set the real key locally; do not commit it or include it in an agent prompt. If GUI steps are required, describe them instead of assuming configuration was completed automatically.
Use a key assigned to a supply group for this model's platform. Send a short text request, then confirm usage in the Ahrigate console.
Official setup guide

Read docs

Other tools