Generic Setup
Any AI tool that lets you set a custom API endpoint works with Takumo. The pattern is always the same.Three steps
Find the endpoint setting
Look for a setting called “API base URL”, “API endpoint”, “Custom endpoint”, or similar in your AI tool’s configuration. Every tool that supports custom providers has one.
Change the URL
Replace the provider’s default URL with your Takumo gateway URL:Self-hosted: use your own gateway URL instead.
Common provider URLs
Here’s what to replace:| Provider | Default URL | Takumo URL |
|---|---|---|
| Anthropic | https://api.anthropic.com | https://gateway.takumo.io/v1 |
| OpenAI | https://api.openai.com | https://gateway.takumo.io/v1 |
| Mistral | https://api.mistral.ai | https://gateway.takumo.io/v1 |
| Google AI | https://generativelanguage.googleapis.com | https://gateway.takumo.io/v1 |
Environment variable pattern
For CLI tools, the integration is usually two environment variables:Config file pattern
For tools with JSON or YAML configuration:SDK pattern
If you’re building your own integration with an AI SDK:If your tool doesn’t support custom endpoints
Some tools don’t let you change the API URL. For those, use the Takumo CLI to pre-process files before pasting or attaching them:shield command for a full round-trip:
If your tool doesn’t support custom endpoints, use the Takumo CLI to pre-process files. Run
takumo-aegis tokenize on your code before pasting it into any AI tool, and takumo-aegis rehydrate on the response to restore secrets.Verifying it works
After configuring any tool, verify secrets are being caught:- Open a file with a known secret (database URL, API key, etc.)
- Send it to your AI tool
- Check the Takumo dashboard — you should see the request logged with detections
- If the detection count is zero, check Supported Patterns