Documentation Index
Fetch the complete documentation index at: https://open-dbe26606.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Overview
opendev ships rule-based insights out of the box. For AI-generated optimization suggestions, you need an API key from one of:| Provider | Free tier | Setup | Get a key |
|---|---|---|---|
| Groq (recommended) | ✅ no credit card | Fastest setup | console.groq.com/keys |
| Anthropic | ❌ $5 minimum | Premium quality | console.anthropic.com |
Quick setup (browser-assisted)
The fastest path:- Opens the provider’s key page in your browser
- Prompts you to paste the key (input is masked)
- Validates against the provider’s API
- Saves to
~/.opendev/credentials.json(chmod 600)
Programmatic setup (CI / dotfiles)
For automated environments:Environment variables
If you prefer not to install anything new:Resolution order (AI keys)
When you runopendev, keys are searched in this order:
-
Shell exports
-
.envin the installation directory -
~/.opendev/credentials.jsonSaved byopendev loginoropendev config set-key - None — only rule-based insights available
What AI insights include
When a key is configured,opendev tx shows:
- AI-generated optimization suggestions — custom recommendations based on the transaction structure
- Provider in use — CLI logs which one at the start of each run
- Same shape from both — Groq and Anthropic return the same structured format
- Rule-based insights — deterministic anomaly detection, nondeterministic-failure warnings, MEV-like patterns, etc.
Custom endpoints (power users)
Override the AI endpoint entirely:Disabling AI
Skip AI entirely (useful for debugging or low-latency runs):Model override
Use a different model than the provider’s default:Troubleshooting
Invalid key error
If you get “Invalid API key” or auth errors:- Double-check the key format (should start with
gsk_...for Groq,sk-ant-...for Anthropic) - Confirm the key is active in the provider’s dashboard
- Clear and re-enter:
No key found
If AI suggestions don’t appear:- Run
opendev loginoropendev config set-key - Or set
GROQ_API_KEY/ANTHROPIC_API_KEYin your shell
Provider quota exceeded
Groq’s free tier has usage limits. If you hit them:- Switch to Anthropic (requires $5+ top-up)
- Or wait for the quota to reset
- Or switch to
--disable-aifor rule-based only
Best practices
- Use Groq for development — free, fast, no credit card
- Save to credentials file — use
opendev loginoropendev config set-key - Pin in CI — set via environment variables in your CI/CD secrets
- Rotate keys regularly — delete old keys from the provider’s dashboard
- Use
--verbose— to see timing and which provider is active: