TronCode API

TronCode API lets you use Claude Code and other AI tools through the TronCode API endpoint, without directly accessing Anthropic services. Set the ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN environment variables to get started.

  • API endpoint: https://openapi.troncode.cn
  • Register and obtain an API Key at the TronCode platform before use

TronCode API is the API for TronCode's coding tools. For LW AI's unified multi-model API (DeepSeek, GLM, etc.), see API Endpoints.

Quick Start

  1. Install Node.js and Claude Code on your platform (Windows / macOS / Linux)
  2. Set environment variables:
export ANTHROPIC_BASE_URL="https://openapi.troncode.cn"
export ANTHROPIC_AUTH_TOKEN="YOUR_TRONCODE_API_KEY"
  1. Run claude to start using Claude Code through the TronCode API

Full Documentation

This page is a brief overview. For the complete TronCode API guide — installation, configuration, and usage — see the official docs: