sageroute
Trajectory-aware model router. An OpenAI-compatible proxy that starts every task on a cheap model, watches what the agent actually does, and escalates on real execution evidence via the Levanto Sage API.
File Explorer
- bug_report.yml
- config.yml
- feature_request.yml
- ci.yml
- pull_request_template.md
- architecture-dark.svg
- architecture-light.svg
- architecture.md
- configuration.md
- decision-model.md
- README.md
- run.sh
- SPEC.md
- test_engine.py
- live-e2e.ts
- live-oauth.ts
- live-subscription.ts
- install-launchagent.sh
- sageroute-daemon.sh
- setup.sh
- evidence.ts
- index.ts
- policy.ts
- resolve.ts
- router.ts
- sage.ts
- session.ts
- signals.ts
- types.ts
- anthropic.ts
- callback.ts
- import.ts
- index.ts
- openai.ts
- pkce.ts
- store.ts
- types.ts
- anthropic.ts
- config.ts
- fingerprint.ts
- inbound-anthropic.ts
- server.ts
- upstream.ts
- cli.ts
- init.ts
- registry.ts
- inbound-anthropic.test.ts
- init.test.ts
- oauth-import.test.ts
- oauth-pkce.test.ts
- oauth-store.test.ts
- proxy-anthropic.test.ts
- proxy-authmode.test.ts
- proxy-config.test.ts
- proxy-messages-route.test.ts
- proxy-oauth-dispatch.test.ts
- proxy-server.test.ts
- proxy-upstream.test.ts
- registry.test.ts
- sageroute-evidence.test.ts
- sageroute-policy.test.ts
- sageroute-session.test.ts
- sageroute-signals.test.ts
- .dockerignore
- .editorconfig
- .env.example
- .gitignore
- CHANGELOG.md
- CODE_OF_CONDUCT.md
- CONTRIBUTING.md
- Dockerfile
- LICENSE
- package.json
- README.md
- sageroute.config.example.json
- sageroute.config.oauth.example.json
- sageroute.daily.json
- SECURITY.md
- tsconfig.json
# Use via CDN
jsDelivrjsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.
Command Glossary
Commands referenced in this DOCs, explained below.
bun install
View Details ▼
bun install
Install JavaScript dependencies for a project from `package.json`.
bun {{[i|install]}}
Install all dependencies listed in `package.json`:
bun {{[i|install]}} {{package_name}}@{{version}}
Install a single package (this is an alias for `bun add`):
bun {{[i|install]}} {{[-g|--global]}} {{package_name}}
Install a package globally:
bun run
View Details ▼
bun run
Execute a JavaScript/TypeScript file, or a script from `package.json`.
bun run {{script_name}}
Run a script defined in `package.json`:
bun run {{path/to/file.ts}}
Run a JavaScript or TypeScript file directly:
bun run --watch {{path/to/file.ts}}
Run a file in "watch" mode (restarts automatically when the file changes):
bun test
View Details ▼
bun test
Run tests using Bun's built-in test runner.
It is a fast, Jest-compatible test runner that looks for `*.test.ts` (and similar) files.
bun test
Run all test files found in the project:
bun test {{path/to/file.test.ts}}
Run a specific test file or directory:
bun test --watch
Run tests in "watch" mode (re-runs automatically on file changes):
claude
View Details ▼
claude
An agent-based coding tool that understands your code base and helps you code faster through natural language commands.
claude prompt
Execute with prompt:
claude update
Update `claude`:
claude mcp list
Get the list of specified MCP servers:
docker build
View Details ▼
docker build
Build an image from a Dockerfile.
docker build .
Build a Docker image using the Dockerfile in the current directory:
docker build {{github.com/creack/docker-firefox}}
Build a Docker image from a Dockerfile at a specified URL:
docker build {{[-t|--tag]}} {{name:tag}} .
Build a Docker image and tag it:
docker run
View Details ▼
docker run
This command is an alias of `docker container run`.
tldr docker container run
View documentation for the original command:
git clone
View Details ▼
git clone
Clone an existing repository.
git clone {{remote_repository_location}} {{path/to/directory}}
Clone an existing repository into a new directory (the default directory is the repository name):
git clone --recursive {{remote_repository_location}}
Clone an existing repository and its submodules:
git clone {{[-n|--no-checkout]}} {{remote_repository_location}}
Clone only the `.git` directory of an existing repository:
openai
View Details ▼
openai
CLI tool providing access to the OpenAI API.
openai api models.list
List models:
openai api completions.create --model {{ada}} --prompt "{{Hello world}}"
Create a completion:
openai api chat_completions.create --model {{gpt-3.5-turbo}} --message {{user "Hello world"}}
Create a chat completion:
serve
View Details ▼
serve
Static file serving and directory listing.
serve
Start an HTTP server listening on the default port to serve the current directory:
serve -p {{port}} {{path/to/directory}}
Start an HTTP server on a specific [p]ort to serve a specific directory:
serve {{[-C|--cors]}}
Start an HTTP server with CORS enabled by including the `Access-Control-Allow-Origin: *` header in all responses:
choice
View Details ▼
choice
Wait for keypress and set `ERRORLEVEL` in batch scripts.
CHOICE "{{prompt}}"
Prompt for yes/no:
