FROM FIRST REQUEST TO YOUR WORKFLOW

Connect your tools to Chabokan AI

From terminal coding to chatbots and automation, choose a setup path for your tool. This guide explains shared settings and key differences, then links to Chabokan’s official documentation for installation and tool-specific steps.

CHAT.CHABOKAN.NET

Chat with Chabokan AI

Use Chabokan’s online chat interface for conversations. To connect AI to your application or tools, start with the model catalogue and API guides.

Start chatting

1. Prepare your service and connection

  1. Active service and usage credit

    Create an AI service in the console and add model usage credit. Plan fees and usage credit are separate; an API key alone is not enough without available credit.

    Console ↗
  2. An API key for your tool or environment

    Create a clearly named key in the API keys tab and save it when shown; the full key is displayed only once. Use separate keys for development, production, and different tools.

  3. The exact model ID

    Copy the ID from your account’s available models tab or a model page. Display names differ from model IDs, and access depends on your account plan.

    View all models ←
Read the Chabokan setup guide: 1. Prepare your service and connection ↗

2. The three connection settings

Most OpenAI-compatible tools need a base URL, key, and model ID. A field expecting only an API host may follow a different convention; use the tool-specific guide.

Base URL · OpenAI-compatible
https://ai.chabokan.net/v1
API Key

Your console-issued key, stored in tool credentials or an environment variable

CHABOKAN_API_KEY
Model ID

A model available to your account; replace the example below as needed

openai/gpt-4o-mini
Claude Code

Important exception: Claude Code uses https://ai.chabokan.net without /v1 because it appends /v1/messages itself. It reads the key from ANTHROPIC_AUTH_TOKEN.

Read the Chabokan setup guide ↗

3. Test a simple request before configuring your tool

Set CHABOKAN_API_KEY to your real key in the server or terminal environment. Run a cURL or SDK example first. After a successful response, configure your tool and locate the request in the console logs.

The Python example requires the openai package; the Node.js example requires the openai npm package. Installation commands and other language examples are in the SDK documentation.

Connect with your preferred language and SDK

Chabokan documentation includes connection examples for these languages. Configure the base URL, API key, and model ID in the appropriate client.

macOS / Linux / WSL
export CHABOKAN_API_KEY="sk-chbk-REPLACE_WITH_YOUR_KEY"
Windows · PowerShell
$env:CHABOKAN_API_KEY = "sk-chbk-REPLACE_WITH_YOUR_KEY"

The cURL example uses macOS/Linux shell syntax. In PowerShell, you can run the Python or Node.js examples; they read the environment variable configured above.

import os
from openai import OpenAI

client = OpenAI(
    base_url="https://ai.chabokan.net/v1",
    api_key=os.environ["CHABOKAN_API_KEY"],
)

response = client.chat.completions.create(
    model="openai/gpt-4o-mini",
    messages=[{"role": "user", "content": "Hello, Chabokan!"}],
)
print(response.choices[0].message)
ai.chabokan.net/v1OpenAI SDK

4. Find your tool’s integration guide

Tools are grouped by use case. Each card explains the purpose, a configuration detail, and its dedicated tutorial. Protocol compatibility does not imply that every model supports every feature.

29 guides

Coding agents & terminal

For project analysis, code edits, and multi-step development tasks.

Anthropic Messages

Claude Code

Analyze and edit projects in the Claude Code terminal or extension, with model usage managed by Chabokan.

Configuration note

Set ANTHROPIC_BASE_URL without /v1, store your key in ANTHROPIC_AUTH_TOKEN, and set ANTHROPIC_MODEL to the model ID.

Read the Chabokan setup guide ↗
OpenAI Responses

Codex CLI

A coding agent for repository analysis, file changes, and terminal development tasks.

Configuration note

Add a custom provider to config.toml with the Chabokan base_url, an env_key, and wire_api="responses". Preserve your existing settings.

Read the Chabokan setup guide ↗
OpenAI Chat Completions

Aider

Discuss code and edit projects with a Git-oriented workflow.

Configuration note

Configure an OpenAI-compatible URL and key, select the model using Aider’s naming format, and start with an ask-only test.

Read the Chabokan setup guide ↗
OpenAI Chat Completions

OpenCode

Configure a provider and multiple models for a terminal coding agent.

Configuration note

Define a Chabokan provider and exact model IDs in OpenCode. Local tool permissions are separate from API access.

Read the Chabokan setup guide ↗
OpenAI Chat Completions

Kilo Code

Use Chabokan models with Kilo Code in VS Code, JetBrains, or the CLI.

Configuration note

Set up an OpenAI-compatible provider with your service URL, key, and model. Use a separate key per environment.

Read the Chabokan setup guide ↗
OpenAI Chat Completions

Hermes Agent

A general terminal agent for multi-step tool workflows.

Configuration note

Configure a custom Chabokan endpoint, then verify a simple text response before testing tool use.

Read the Chabokan setup guide ↗
OpenAI Chat Completions

Pi

An extensible coding agent with custom model and provider configuration.

Configuration note

Define the provider and model in models.json and read the key from an environment variable.

Read the Chabokan setup guide ↗

Editors & extensions

Connect tools in VS Code and JetBrains, and check editor-specific limitations.

OpenAI Chat Completions

Cline

A development assistant in VS Code and JetBrains for project exploration and code changes.

Configuration note

Choose OpenAI Compatible and enter the base URL, API key, and model ID. Choose a tool-capable model for agent workflows.

Read the Chabokan setup guide ↗
OpenAI Chat Completions

Continue

Configure models for chat, edit, agent, and autocomplete workflows in your editor.

Configuration note

Configure the model for each role separately. Chat compatibility does not imply identical autocomplete support.

Read the Chabokan setup guide ↗
OpenAI Chat Completions

Roo Code

Use different development modes for project analysis and changes in VS Code.

Configuration note

Set up an OpenAI-compatible provider and first test a request that does not modify files.

Read the Chabokan setup guide ↗
Version-dependentLimited; version-dependent

Cursor

Use a custom OpenAI URL in features supported by your Cursor version.

Configuration note

A URL override does not guarantee compatibility with every feature, Agent, or Tab. Check version and BYOK limitations first.

Read the Chabokan setup guide ↗
Messages / Responses

VS Code · Claude Code & Codex

Connect the official Claude Code and Codex extensions in VS Code.

Configuration note

Follow the relevant extension’s provider and key setup. These two tools use different API protocols and base URL conventions.

Read the Chabokan setup guide ↗

Web chat & desktop apps

Try models or set up personal and team chat interfaces.

OpenAI Chat Completions

Open WebUI

Create an internal multi-model chat interface for yourself or your team.

Configuration note

Create an OpenAI-compatible connection on the WebUI server and manage user and model access within the application.

Read the Chabokan setup guide ↗
OpenAI Chat Completions

Cherry Studio

A desktop interface for chat and multiple models through a custom provider.

Configuration note

Add a custom provider with the Chabokan URL, enter the model ID, and test a simple conversation.

Read the Chabokan setup guide ↗
Chabokan panel

Chabokan web chat

Try service models in the Chabokan console before connecting your application.

Configuration note

Select an eligible model on the service page and review the response alongside its usage record.

Read the Chabokan setup guide ↗

Automation, frameworks & assistants

Connect models to workflows, applications, assistants, and local routers.

OpenAI Chat Completions

n8n

Summarize, classify, or generate text in workflows and connect a model to an AI Agent.

Configuration note

Use HTTP Request or OpenAI Chat Model with custom credentials. Start with a fixed input before connecting dynamic data.

Read the Chabokan setup guide ↗
OpenAI Chat Completions

LangChain

Build model-based applications in Python and JavaScript, with streaming and tool calling.

Configuration note

Configure ChatOpenAI with the Chabokan base URL and key. Chain and agent capabilities depend on the selected model and parameters.

Read the Chabokan setup guide ↗
OpenAI Chat Completions

OpenClaw

Connect an assistant with tools and communication channels to a Chabokan provider.

Configuration note

Define a custom provider and model. Configure channels and tool permissions separately in OpenClaw.

Read the Chabokan setup guide ↗
OpenAI Chat Completions

MausBot / OpenMausBot

Use a Chabokan model in multi-bot and tool-based assistant workflows.

Configuration note

Configure the OpenAI-compatible driver and manage computer-access permissions separately.

Read the Chabokan setup guide ↗
OpenAI Chat Completions

9Router

Put Chabokan behind a local router with multiple providers and fallback.

Configuration note

Add Chabokan as a router upstream. Local fallback is managed by 9Router itself.

Read the Chabokan setup guide ↗

SDKs & direct API integration

From your first request to streaming, image inputs, and tool calling.

OpenAI Chat Completions

cURL · Python · Node.js

Send your first direct request from the terminal or an application using the official OpenAI SDK.

Configuration note

Set base_url or baseURL to the Chabokan URL and use an exact model ID.

Read the Chabokan setup guide ↗
OpenAI-compatible

Programming language examples

Examples for Python, JavaScript, TypeScript, Go, Java, Kotlin, C#, Ruby, PHP, and Rust.

Configuration note

Follow your language’s guide and configure the API key and base URL on the server side.

Read the Chabokan setup guide ↗
Chat / Responses

Advanced API recipes

Multi-turn conversations, streaming, Python async, image inputs, and tool-calling loops.

Configuration note

Test each recipe with a model that supports its required inputs and parameters.

Read the Chabokan setup guide ↗

Setup, operations & troubleshooting

Create a service, choose models, manage your team, and prepare for production.

Getting started

Service setup & connection test

Prepare an active service, usage credit, an API key, and a model ID.

Configuration note

Plan fees and model usage credit are separate. Check your service credit before testing.

Read the Chabokan setup guide ↗
Models & capabilities

Model selection

Choose a model for chat, RAG, or a coding agent based on required context and capabilities.

Configuration note

A successful text response does not guarantee tool calling or image input support. Check the model page.

Read the Chabokan setup guide ↗
Operations

Teams & production

Environment separation, key storage, spend controls, retry handling, and gradual rollout.

Configuration note

Create a separate key for each tool and environment, then configure budgets, rate limits, and reporting.

Read the Chabokan setup guide ↗
Troubleshooting

Connection troubleshooting

Diagnose key, credit, model ID, API path, rate limit, and network issues.

Configuration note

First test the same key and model with cURL, then compare the tool configuration with the basic connection.

Read the Chabokan setup guide ↗
Chabokan panel

Request logs

Review request status, the model used, token usage, and latency in the console.

Configuration note

Locate logs by key and request time to match tool activity with actual service requests.

Read the Chabokan setup guide ↗
Chabokan panel

Service & team management

Manage keys, team members, plans, and your AI service lifecycle.

Configuration note

Manage team access and usage limits in the console; revoke an individual tool key independently of the service.

Read the Chabokan setup guide ↗

5. Protocols and compatibility boundaries

Models share one gateway, but clients use different request formats. Choose Chat Completions, Responses, or Anthropic Messages to match your client configuration.

Protocol & pathCommon clients
OpenAI Chat CompletionsPOST /v1/chat/completionsSDKs · Cline · n8n · LangChain · Open WebUI
OpenAI ResponsesPOST /v1/responsesCodex CLI / VS Code
Anthropic MessagesPOST /v1/messagesClaude Code

Gemini CLI and Google GenAI SDK using native generateContent are not supported by this connection. Use an OpenAI-compatible client for a Gemini model available to your account. Custom models in Claude Desktop are not currently guaranteed by these docs.

Full Chabokan documentation ↗
Claude Code · Example connection variables
macOS / Linux / WSL
export ANTHROPIC_BASE_URL="https://ai.chabokan.net"
export ANTHROPIC_AUTH_TOKEN="$CHABOKAN_API_KEY"
export ANTHROPIC_MODEL="openai/gpt-4o-mini"
export ANTHROPIC_SMALL_FAST_MODEL="openai/gpt-4o-mini"
Claude Code · Read the Chabokan setup guide ↗
Codex · Example provider configuration
~/.codex/config.toml
model = "openai/gpt-4o-mini"
model_provider = "chabokan"

[model_providers.chabokan]
name = "Chabokan AI"
base_url = "https://ai.chabokan.net/v1"
env_key = "CHABOKAN_API_KEY"
wire_api = "responses"
Codex · Read the Chabokan setup guide ↗

6. From text responses to streaming and tools

Response streaming

For compatible text requests, enable stream=true and consume response chunks. Your UI must handle stream completion, disconnections, and errors.

Agent tool calling

Your model must support tools. The application or agent defines tools, executes functions, and returns results; the gateway does not execute local commands or access your files.

Image inputs and multi-turn conversations

For images, choose an image-input model and use the message format for your protocol. Manage conversation history and context limits in your application; a text response does not verify image support.

7. Costs, reporting, and team use

Keep real keys out of frontend code, Git, and tool exports. Set spending caps and expiry dates per environment. Follow token and cost records in the console and use bounded retries with backoff for 429 and transient errors.

8. Troubleshoot a failed connection

Symptom or errorWhat to check first
401 / 403Check key validity, revocation or expiry, and account access to the selected model.
402Check usage credit, key spending limits, and service status. A plan does not replace model usage credit.
400 / 404Check the base URL, a duplicated /v1, the exact model ID, and supported parameters.
429Reduce request rate and concurrency, and use bounded retries with increasing delays.
Timeout / 502 / 503 / 504Try a simple request with the same key and model, check connectivity and timeouts, and compare with request logs.
Agent / ToolsIf text works but tools do not, check tools support, parameter formats, and tool permissions in the agent application.
Read the Chabokan setup guide: 8. Troubleshoot a failed connection ↗

Choose your setup guide

From coding agents and editor extensions to team chat, n8n, and custom applications: find tool guides, URL conventions, and troubleshooting in one place.