API

Your GPU, usable by any tool.

The AI Chat module ships an OpenAI-compatible API — serve your local compute to third-party applications: terminal coding agents, editor plugins, automation scripts. Zero API fees, no queues, and your code and prompts never leave the machine.

BASE URLhttp://127.0.0.1:2918/v1
Setup

Connected in three steps

Once a model is running, the chat module doubles as a local inference service — any tool that supports a custom endpoint can connect directly.

  1. 1

    Start a model in the app

    Open AI Chat, pick and launch a downloaded model — it becomes the inference engine behind the API.

  2. 2

    Get the endpoint details

    The "API Configuration" page in the sidebar lists the Base URL and available model names — copy them.

  3. 3

    Paste into your tool

    Enter the Base URL and model name in your tool's custom-provider settings — done. Inference now runs on your own GPU.

The actual flow — grab the endpoint from the app, connect opencode, start chatting
Example

Example: coding in the terminal with opencode

opencode is an open-source terminal AI coding agent. Point it at the local endpoint and your coding assistant runs entirely on your own GPU — reading code, editing code, running commands, fully offline.

In opencode's custom-provider settings, you only need three pieces of information:

Base URLhttp://127.0.0.1:2918/v1
API Keyany string (the local endpoint doesn't check keys; most tools require a value)
Modela model name as listed on the app's "API Configuration" page

For the exact configuration format, follow the custom-provider section of the opencode documentation; the endpoint and model names shown in the app's "API Configuration" page are authoritative. Any tool that supports a custom OpenAI-compatible provider — editor plugins, chat clients, scripts — needs the same three pieces.

Capabilities

Tools get a full inference service

OpenAI-compatible

Standard chat-completions endpoint (/v1) with SSE streaming — tools written for the OpenAI API mostly just work.

Anthropic-compatible

An Anthropic-compatible endpoint (/anthropic/v1) is also provided, so tools built for the Claude API connect too.

Local endpoint

The service runs on port 2918 of your computer; by default it binds to localhost only (127.0.0.1) — data stays on your machine.

Streaming responses

SSE streaming works as usual — your coding agent's token-by-token output feels identical to a cloud API.

Context & parameters

Context length and generation parameters depend on the selected model — the same engine as in-app chat.

No quota anxiety

No token billing, no rate-limit tiers — the ceiling is your hardware.

Good To Know

Before you connect

LAN mode

By default the API binds to localhost only. To let other computers on the same network use it, enable LAN mode in Settings — the interface has no authentication, so enable it only on trusted networks and never expose it to the public internet.

Performance is your hardware

Response speed and usable context length are determined by your GPU and the selected model.

Terms still apply

Use via the API remains subject to the EULA and the Acceptable Use Policy.

Next

Meet the chat module, then wire it to your tools.