đĻ Installation
Tresor is distributed as a single compiled Go binary with no external dependencies. You can install it from a pre-built release or build from source.
đĨ Install from Releaseâ
Linux / macOS â Setup Scriptâ
The quickest way to get started â download the latest release with one command:
curl -fsSL https://raw.githubusercontent.com/Ladbaby/Tresor/main/setup.sh | bash
This script:
- Detects your OS and architecture automatically (Linux amd64/arm64, macOS amd64/arm64)
- Downloads the latest release binary from GitHub
- Installs it to
~/.local/bin/tresor - Creates a config skeleton at
~/.config/tresor/config.yaml - Checks if
~/.local/binis in your$PATHand warns if not
Note: This script only supports Linux and macOS. Windows users should build from source or download a release binary manually from GitHub Releases.
Windowsâ
Download a release binary manually from GitHub Releases, then place it in a directory on your PATH or reference it directly.
Build from Sourceâ
For developers, unsupported platforms, or when you need the latest unreleased changes:
Prerequisitesâ
- đš Go 1.26+ â required for compilation
Compileâ
- Linux
- macOS
- Windows
go build -o tresor .
go build -o tresor .
go build -o tresor.exe .
The compiled binary has no runtime dependencies â it's a single executable that includes the daemon, CLI, web UI, and SQLite database engine.
đ Quick Startâ
1ī¸âŖ Configure Your API Keysâ
If you used the setup script:
Edit ~/.config/tresor/config.yaml to add your provider API keys:
downstreams:
- id: openai-gpt4o
name: OpenAI GPT-4o
base_url: https://api.openai.com/v1
api_key: sk-proj-... # Replace with your API key
- id: anthropic-sonnet
name: Anthropic Claude Sonnet
base_url: https://api.anthropic.com
api_key: sk-ant-... # Replace with your API key
If you built from source:
Copy the example configuration and customize it:
cp config.example.yaml config.yaml
Then edit config.yaml to add your provider API keys.
2ī¸âŖ Start the Daemonâ
- Setup script install
- Build from source
tresor run --config ~/.config/tresor/config.yaml
# Auto-detect config (current directory or home)
./tresor run
# Or explicit path
./tresor run --config /path/to/config.yaml
The daemon starts listening on the configured bind_addr. The gateway and admin API are available on this address.
3ī¸âŖ Point Your Applicationâ
Configure your application's LLM client to use Tresor as the endpoint:
base_url: http://127.0.0.1:11510
Any request sent to Tresor is intercepted, routed to the appropriate downstream, and the response is returned â all transparently.
4ī¸âŖ Open the Web UIâ
Navigate to http://127.0.0.1:11510 in your browser to access the embedded dashboard. The web UI features a login screen (if admin_password is set), dark/light theme toggle, and tabs for managing downstreams, aliases, rules, plugins, settings, and an about panel.
đ Config File Locationsâ
Tresor auto-detects the config file in this order:
- Path specified by
--configflag ./config.yamlin the current working directory$HOME/.tresor.yamlin your home directory
The setup script places config at ~/.config/tresor/config.yaml â use --config to point to it explicitly.
âšī¸ Version Infoâ
Check the installed binary's version:
tresor version