Installation¶
Python 3.11+ required. Install with uv or pip.
For the quickest path, see Quickstart. This page covers all platforms and optional features.
System Requirements¶
| Requirement | Version | Purpose |
|---|---|---|
| Python | >= 3.11 | Runtime environment |
| uv | Latest | Package management (recommended) |
Installing System Requirements¶
macOS:
Linux (Debian/Ubuntu):
Windows:
Installation Methods¶
Using uv tool (Recommended)¶
This installs ot-serve and ot-bench commands globally.
Using pip¶
From Source (Development)¶
Local Development Install¶
Code changes are picked up immediately. Reinstall only for new entry points, dependencies, or top-level packages.
API Keys¶
API keys are stored in secrets.yaml (gitignored):
| Key | Service | Used By |
|---|---|---|
OPENAI_API_KEY |
OpenRouter | transform, code_search |
BRAVE_API_KEY |
Brave Search | brave.* tools |
CONTEXT7_API_KEY |
Context7 | context7.* tools |
Example secrets.yaml¶
Resolution order: OT_SECRETS_FILE > .onetool/secrets.yaml > ~/.onetool/secrets.yaml
Configuration Variables¶
| Variable | Default | Purpose |
|---|---|---|
OT_LOG_LEVEL |
INFO |
Logging verbosity |
OT_LOG_DIR |
../logs |
Log file directory (relative to config) |
Transform Tool Configuration¶
The transform tool requires explicit configuration in ot-serve.yaml:
tools:
transform:
base_url: "https://openrouter.ai/api/v1" # Required
model: "openai/gpt-5-mini" # Required
The tool is not available until both base_url and model are configured, plus OPENAI_API_KEY in secrets.
MCP Configuration¶
Claude Code¶
Add to ~/.claude/settings.json:
With Environment Variables¶
{
"mcpServers": {
"onetool": {
"command": "ot-serve",
"env": {
"OT_BRAVE_API_KEY": "your-brave-api-key"
}
}
}
}
Project Setup¶
Create a .onetool/ directory in your project:
| Platform | Global Config | Project Config |
|---|---|---|
| macOS/Linux | ~/.onetool/ |
.onetool/ |
| Windows | %USERPROFILE%\.onetool\ |
.onetool\ |
Feature-Specific Requirements¶
Semantic Code Search (code_search)¶
Requires pre-indexed codebase:
Ripgrep Search¶
# macOS
brew install ripgrep
# Linux
apt install ripgrep
# Windows
winget install BurntSushi.ripgrep.MSVC
Verify Installation¶
# Check version
ot-serve --version
# Start MCP server
ot-serve
# Run benchmarks (from source)
OT_CWD=demo ot-bench run demo/bench/features.yaml
Next Steps¶
- Configuration - YAML schema and options
- CLI Reference - Command-line tools
- Examples - Demo project usage