TESSEN Platform
Documentation
Docs/Developer tools
DEVELOPER TOOLS

Environment configuration

Where to keep your key and the base URL, in a shell, a `.env` file and CI.

SettingValue
API keyTESSEN_API_KEY — begins tes_
Base URLhttps://api.tessen.ai/v1

Shell

MACOS, LINUX, WSL
export TESSEN_API_KEY="tes_..."
WINDOWS POWERSHELL
$env:TESSEN_API_KEY = "tes_..."

A .env file

If your tooling loads a .env file, keep it out of version control.

.ENV
TESSEN_API_KEY=tes_...
.GITIGNORE
.env

CI and servers

  • Store the key in your CI system's secret store or a secret manager, and expose it to the job as an environment variable.
  • Use one key per program or environment, so a leaked key can be revoked without stopping everything.
  • Never print the key in logs. The examples read it with os.environ and process.env and never echo it.
Note

The Tessen CLI and OpenCode do not use TESSEN_API_KEY: tessen opencode stores their credential in OpenCode's own credential store.

Search documentation

Titles, headings and guides↑ ↓ navigate · Enter open
Environment configuration · Tessen Docs