trae

command
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2026 License: MIT Imports: 34 Imported by: 0

Documentation

Overview

Command trae builds the CPA c-shared plugin library for TRAE.

Both files in this directory are package main: main.go carries the exported cgo ABI and plugin.go carries the abiboot.Plugin implementation. Keeping the plugin implementation in the same package is what lets `go build -buildmode=c-shared ./plugins/trae` (see scripts/build.sh) emit the shared object directly from this directory.

Command trae implements the CLIProxyAPI native plugin for ByteDance TRAE.

The package is split after plugins/codearts:

config.go     provider keys, per-region endpoint sets, settings
credential.go persisted credential shape, expiry
session.go    deterministic device/identity derivation
headers.go    SOLO / check-in / OAuth request headers
oauth.go      login session, callback parsing, ExchangeToken
auth.go       auth.parse / auth.login.* / auth.refresh
translate.go  the OpenAI <-> SOLO translation core
models.go     catalog parsing, model discovery and gating
executor.go   executor.* and request/response translation routes
credits.go    daily check-in, credit balance, quota provider
errors.go     upstream error classification
plugin.go     registration and the management route table
pluginui.go   the HTML pages served into CPA-Manager-Plus

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL