Skip to content

AI Tool Setup

Yokai discovers running inference services, exposes their tunneled endpoints, and can write supported client configurations from the Settings route.

ClientIntegration behavior
VS Code CopilotAdds OpenAI-compatible entries under chat.models[]
OpenCodeAdds one provider per host through @ai-sdk/openai-compatible
OpenClawAdds a Yokai provider under models.providers
Claude CodeSets ANTHROPIC_BASE_URL, ANTHROPIC_MODEL, and ANTHROPIC_CUSTOM_MODEL_OPTION
CodexAdds a Yokai provider under [model_providers.yokai]
  1. Ensure at least one compatible inference service is running.
  2. Open Settings with 4.
  3. Toggle clients with V (VS Code), O (OpenCode), L (OpenClaw), K (Claude Code), or X (Codex).
  4. Press C to configure the selected clients.

The daemon detects each expected configuration path and reports whether the tool is available and already configured.

Before modifying an existing file, an integration writer creates a sibling .yokai.bak. Review or restore the backup if you want to remove the generated endpoints.

The daemon exposes normalized OpenAI-compatible endpoints at:

GET http://127.0.0.1:7473/integrations/openai-endpoints

Each endpoint includes the service, device, model, and local tunneled URL. This is also useful for unsupported clients.

Use the local tunneled endpoint shown by Yokai:

Terminal window
export OPENAI_BASE_URL="http://127.0.0.1:<local-port>/v1"
export OPENAI_API_KEY="not-needed"

Use the exact model ID reported by the running service. If the backend enforces its own API key, use that value instead.

Claude Code expects an Anthropic-style configuration. Yokai writes the custom base URL and model fields supported by Claude Code. Confirm that the selected backend provides the compatibility behavior your workflow needs.

Yokai adds a named provider rather than replacing unrelated providers. Select the corresponding provider and model in your Codex configuration or session.

Yokai can register every eligible running endpoint. Client UIs decide how the entries are selected; Yokai does not proxy or load-balance requests between them.

Restore the .yokai.bak file or remove only the generated Yokai provider/model entries. Restart the client so it reloads configuration.