Prerequisites
- TRAE IDE installed (trae.ai)
- A ClearMaas API key starting with
sk-
Setup via AI Settings
TRAE supports two protocol paths for custom providers:OpenAI-compatible setup
- Open Settings �?AI (or Trae AI)
- Navigate to Models or Custom Providers
- Add a new provider:
Anthropic-compatible setup
The Anthropic path uses the bare host URL �?TRAE’s SDK appends
/v1/messages automatically.
Model naming format
When selecting models in TRAE, use ClearMaas’sprovider/model format:
Selecting a model
After adding the provider:- Open the AI chat or Builder panel
- Open the model selector
- Choose ClearMaas (or the provider name you configured)
- Pick any available model
Project-level configuration
For team consistency, you can add model configuration to a project file (if TRAE supports project-scoped AI settings):Environment variable fallback
If TRAE reads standard environment variables, you can set them before launching:Verification
- After adding ClearMaas as a provider, select a ClearMaas model
- Ask a question in the AI chat
- Check your ClearMaas dashboard to confirm the request was routed