Settings
Configure application settings including LLM providers.
LLM Configuration
Providers
Tollbooth supports multiple LLM providers:
| Provider | Models |
|---|---|
| Anthropic | Claude 3.5 Sonnet, Claude 3 Opus, etc. |
| OpenAI | GPT-4o, GPT-4, GPT-3.5, etc. |
| Gemini 1.5 Pro, Gemini 1.5 Flash | |
| Ollama | Any locally hosted model |
Settings Per Provider
| Setting | Description |
|---|---|
| API Key | Your API key (not needed for Ollama) |
| Model | Model name or ID |
| Temperature | Response randomness (0-1) |
| Max Tokens | Maximum tokens to generate |
| Base URL | Custom API endpoint (optional) |
Active Provider
Select which provider to use for:
- LLM Chat
- Rule LLM modifications
- Refusal replacement generation
- Data Store transformations
Security Warning
API Key Storage
API keys entered here are stored in plaintext in tollbooth-data/config/settings.json.
Do not use on shared or production systems.
Safer Alternatives
Pass API keys via environment variables instead:
Environment variables are passed to the agent container but not persisted to disk.
Prompt Templates
Manage reusable prompt templates for:
- Mock response generation
- Data transformation
- Error response generation
Default Templates
| Template | Purpose |
|---|---|
| Generate API Mock Response | Create realistic API responses |
| Generate Error Response | Create error responses |
| Transform Response | Apply transformations |
| Anonymize PII | Remove personal information |
Custom Templates
Create templates with variables:
Variables use {{variable_name}} syntax.
Message Filters
Configure content filters to clean up conversation tree view display. Filters remove matched content from the tree visualization without modifying the underlying data.
Creating Filters
- Go to Settings
- Open the Message Filters section
- Add patterns to filter out
Filter Options
| Field | Description |
|---|---|
| Name | Descriptive name |
| Pattern | Text or regex pattern to match |
| Regex | Enable regex matching |
| Enabled | Toggle on/off |
Use Cases
- Remove verbose tool result content (base64 data, large JSON blobs)
- Hide repetitive boilerplate messages
- Clean up tree view for readability
Skip Whitespace-Only
When enabled, messages that become whitespace-only after filtering are removed from the tree entirely.
Glossopetrae (Optional)
When Tollbooth is built with Glossopetrae enabled, additional settings appear:
- Language Seeds - Configure seed values for conlang decode/encode
- Decode buttons appear in conversation and traffic views
- Bidirectional translation (decode conlang to English, encode English to conlang in intercept)
See the README for build instructions.
Rebuild Conversations
Click Rebuild Conversations to reprocess all LLM traffic and recreate conversation correlations. Useful after importing traffic data or if conversations get out of sync.
Data Store Path
Shows the configured data store location (read-only, set via Docker mount).