{% extends "base.html" %} {% block title %}Tool Setup - Janus{% endblock %} {% block tools_active %}bg-gray-700 text-white{% endblock %} {% block content %}

Tool Setup

Connect your tools to Janus. All requests go through the same OpenAI-compatible endpoint.

🤖

Claude Code

Set the environment variable and run:

export ANTHROPIC_BASE_URL={{ base_url }} {% if require_key %} export ANTHROPIC_API_KEY=sk-janus-xxxx {% endif %}
💻

Codex / Cursor

Cursor / Chat Completions — point OpenAI base URL at Janus:

export OPENAI_BASE_URL={{ base_url }} {% if require_key %} export OPENAI_API_KEY=sk-janus-xxxx {% endif %}

Codex CLI — use Responses API via ~/.codex/config.toml (wire_api = "responses", base_url = Janus /v1). See docs Client Setup.

📝

Cline

In Cline settings, set API Provider to "OpenAI Compatible":

Base URL: {{ base_url }} {% if require_key %} API Key: sk-janus-xxxx {% endif %}
🔧

Generic / curl

Standard OpenAI-compatible API:

curl {{ base_url }}/chat/completions \   -H "Authorization: Bearer {% if require_key %}sk-janus-xxxx{% else %}none{% endif %}" \   -H "Content-Type: application/json" \   -d '{"model": "openai/gpt-4o", "messages": [...]}'
{% endblock %}