XuanShu API

TRAE SOLO Setup Guide

Add custom models to TRAE SOLO and connect to XuanShu API Claude or Codex channels. All configuration happens in the graphical interface without the command line.

1. Get your API Key

  1. If you don't have an account yet, sign up at /register first.
  2. Create a new API Key in /keys dedicated to TRAE SOLO and save the full value securely.

2. Open the custom model settings

  1. Open TRAE SOLO's settings.
  2. Go to the Models page.
  3. Click "Add Model".
  4. Select "Custom Configuration".

3. Fill in the configuration by channel

The two channels use different base URLs: the Claude channel uses the root address, while the Codex channel must include /v1. Using the wrong URL will cause an immediate connection error. Models change over time; check /available-channels for the current list.

FieldClaude ChannelCodex Channel
API ProtocolAnthropic / ClaudeOpenAI / Codex
Base URLhttps://www.xuanshuapi.comhttps://www.xuanshuapi.com/v1
API KeyFull Key copied from /keysFull Key copied from /keys
Model IDclaude-opus-4-7gpt-5.6-sol

4. Verify success

After saving, select the new model in TRAE SOLO and send a message. You should get a response. At the same time, open /usage and confirm you see a successful API call for that model. Both checks passing means you're connected.

5. Troubleshooting

SymptomCheckFix
Connection fails / 404Claude channel URLs must not include /v1; Codex channel URLs must include /v1.Correct the Base URL and save again.
401 / 403Make sure you copied the full Key without truncation and it hasn't expired.Go to /keys and copy or create a new Key.
Model unavailableThe model ID must exactly match the ID shown in /available-channels.Switch to a current model for the same protocol.
429 (rate limited)Check your balance, Key limits, and concurrency in /usage.Lower concurrency and wait for the rate limit window to reset.