Skip to Content
aicentos

Trae

Add a custom OpenAI-compatible service in Trae settings, with the aicentos Base URL and your API Key

Last updated:

This document explains how to connect to this service in Trae using a custom OpenAI-compatible configuration. The settings entry points vary between Trae versions, so instead of tying this guide to a single menu path, it describes the key settings you need to find.

Open the AI / Model settings

In Trae's settings, look for the configuration areas matching these keywords:

  • AI
  • Models
  • Provider
  • OpenAI
  • Custom

If the current version supports custom OpenAI-compatible connections, it usually provides inputs for the model provider, API Key and Base URL.

Configuration to fill in

Fill in for this service:

  • Base URL: https://aicentos.com/v1
  • API Key: your codex_... or sk-... key
  • Model ID: follow the results returned by GET /v1/models; if you only want a quick connectivity test, try gpt-6-astra first

Test

After saving, start a new conversation, editing task or agent task, and confirm Trae can send requests and return content normally.

Notes

  • The value entered here is the OpenAI-compatible Base URL; do not extend it to the full /chat/completions or /responses path
  • If your current version only offers the built-in official models, or only accepts an official OpenAI key without letting you change the Base URL, it cannot connect to this gateway directly
  • The safest approach is to verify the visible models with GET /v1/models first, then enter the Model ID in Trae