Reference

Environment and server.json

The environment variables and server.json keys operators and developers set.

Environment variables win over server.json. The full schema is in server/src/app-config.ts.

#Environment variables

VariablePurpose
MYCEL_CONFIGPath of the server JSON
MYCEL_MODEdev or prod
MYCEL_HOST, MYCEL_PORTListen address and port. Loopback by default.
MYCEL_DATA_DIRDatabase and private runtime folder
MYCEL_TEAM_ROOTTeam-file folder
MYCEL_PUBLIC_ORIGINSComma-separated browser origins of the installation
MYCEL_LOG_LEVELdebug, info, warn or error
MYCEL_EXIT_ADDRESS_CHECKoff stops the public-address check against the release feed
MYCEL_REMOTE_MCP_ORIGINPublic origin for the MCP connector. Wins over server.json.
MYCEL_RELAY_URLRelay address for development (bun run dev:server:relay)
TEAM_AX_DEV_DIR, TEAM_AX_DEV_PORTDevelopment supervisor folder and port. Not for production.

Other MYCEL_* variables in the code are for tests, packaging or internal helpers. Do not set them in production.

On Linux, put environment overrides in /etc/default/mycel.

#server.json keys

KeyPurpose
modedev or prod
listen.host, listen.portWhere the server listens
engine.authModelocal-login (the OS user's CLI login) or managed (AI connections behind the proxy)
engine.credentialKindsNarrow which AI connection kinds the team may add
engine.anthropicGatewayClaude Code on other models. See configuration.
appConnectorstrue with tunnel.host turns on the MCP connector
relay, tunnelPublic address settings
updateUpdate feed and automatic updates
Warning

engine.modelUpstreams, fake upstreams and native-path overrides are for tests. Never point a live credential proxy at an untrusted address.

Trina AX is free software under AGPL-3.0-only. Icons: Lucide (ISC). Edit this page