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
- Install Node.js and Claude Code on your platform (Windows / macOS / Linux)
- Set environment variables:
export ANTHROPIC_BASE_URL="https://openapi.troncode.cn"
export ANTHROPIC_AUTH_TOKEN="YOUR_TRONCODE_API_KEY"- Run
claudeto 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:
Related
- TronCode IDE — Desktop AI code editor
- Tron CLI — Terminal AI coding agent