CODING AGENTS · CURSOR / CLINE / ROO CODE / CODEX

Use Wanyra API with Cursor, Cline, Roo Code & Codex

Coding agents burn through long-context tokens fast. Route Cursor, Cline, Roo Code, and Codex through Wanyra for discounted GPT 6.2, Gemini 4 Neon, and Claude 5.5 with verified tool calling.

Last updated: 2026-11-27

1. Configure Cline or Roo Code (OpenAI Compatible)

Both Cline and Roo Code support standard OpenAI-compatible endpoints out of the box:

  • Select API Provider: OpenAI Compatible
  • Set Base URL to https://api.star1age.cn/v1 and paste your sa_live_... key
  • Recommended models: star1age-claude-opus-5.5 or star1age-gpt-6.2-sol for complex refactors; star1age-gemini-4-neon for fast long-context coding with verified prompt caching

2. Configure Cursor and OpenAI SDK / Codex

In Cursor, enable Override OpenAI Base URL under Models and set https://api.star1age.cn/v1. SDK-based agents work with both /v1/chat/completions and /v1/responses:

import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.star1age.cn/v1",
  apiKey: process.env.STAR1AGE_API_KEY,
});

const res = await client.chat.completions.create({
  model: "star1age-gpt-6.2-sol",
  messages: [{ role: "user", content: "Summarize this diff in 3 bullets." }],
  stream: true,
  stream_options: { include_usage: true },
});

3. Add the open-source Wanyra MCP Server

Attach our zero-dependency MIT MCP server (@star1age/wanyra-mcp) to query live catalog pricing and invoke text, image, or video models directly from Claude Code, Cursor, or Codex:

{
  "mcpServers": {
    "wanyra": {
      "command": "npx",
      "args": ["-y", "github:a5768549/wanyra-mcp"],
      "env": {
        "WANYRA_API_KEY": "sa_live_your_key_here"
      }
    }
  }
}

Frequently asked questions

Why do prompt caching and tool calling matter so much for coding agents?
Coding agents resend tens of thousands of repository tokens every turn. Relays that break caching or truncate tool calls multiply cost and cause loop failures. Wanyra publishes daily capability checks on /status.
What happens if a long streaming response disconnects mid-turn?
Text streaming supports Idempotency-Key and Last-Event-ID resumption so network hiccups do not cause duplicate billing.

Ready to integrate? Inspect live rates, real-time model telemetry, and full API docs:

Cursor, Cline, Roo Code & Codex Low-Cost OpenAI-Compatible API Setup | Wanyra