BYOK AI Providers
NeuralRepo’s AI features are powered by Bring Your Own Key (BYOK). You connect your own API key from a supported provider and NeuralRepo uses it for AI-generated specs, weekly digest summaries, and other intelligent features.
What BYOK Enables
Section titled “What BYOK Enables”| Feature | Description |
|---|---|
| AI-Generated Specs | The /ideas/:id/develop endpoint uses your key to generate a full project specification from an idea. |
| Weekly Digest | Your Sunday digest includes an AI-written summary of the week’s ideas, connection suggestions, and stale idea flags. |
| Future Features | Auto-tagging, idea enrichment, and smart grouping are on the roadmap — all powered by your key. |
Without a BYOK key, these features are unavailable. Core functionality (capture, search, organize, graph) works without any AI key.
Supported Providers
Section titled “Supported Providers”| Provider | Models | Key Format |
|---|---|---|
| Anthropic | Claude 3.5 Sonnet, Claude 4 Sonnet, Claude 4 Opus | sk-ant-... |
| OpenAI | GPT-4o, GPT-4o-mini | sk-... |
| OpenRouter | Any model available on OpenRouter | sk-or-... |
-
Go to Settings > AI Providers in the NeuralRepo web dashboard.
-
Select your provider (Anthropic, OpenAI, or OpenRouter).
-
Paste your API key.
-
Click Save. The key is encrypted and stored securely.
-
Click Test Connection to verify the key works.
Use the BYOK API endpoints to manage keys programmatically:
# Set a provider keycurl -X PUT https://neuralrepo.com/api/v1/user/byok/anthropic \ -H "X-API-Key: nrp_your_key_here" \ -H "Content-Type: application/json" \ -d '{"api_key": "sk-ant-your-anthropic-key"}'# Test the keycurl -X POST https://neuralrepo.com/api/v1/user/byok/anthropic/test \ -H "X-API-Key: nrp_your_key_here"Replace anthropic with openai or openrouter for other providers.
Provider Priority
Section titled “Provider Priority”When NeuralRepo needs to make an AI call, it selects a provider in this order:
- Your explicit preference — if you have set a preferred provider in settings, that is used first.
- Anthropic — if an Anthropic key is configured.
- OpenAI — if an OpenAI key is configured.
- OpenRouter — if an OpenRouter key is configured.
If no key is available for any provider, the AI feature is skipped gracefully (for example, the weekly digest is sent without an AI summary).
Security
Section titled “Security”Your API keys are protected with multiple layers:
- Encrypted at rest. Keys are encrypted using the server-side
ENCRYPTION_KEYbefore being written to the database. The plaintext key is never stored. - AI Gateway routing. All AI requests are routed through Cloudflare’s AI Gateway, which provides logging, rate limiting, and caching without exposing your key to additional third parties.
- No key exposure. The API never returns your full key. GET endpoints return only the last four characters for identification.
Managing Keys
Section titled “Managing Keys”# List configured providers (returns provider names and last 4 chars of key)curl https://neuralrepo.com/api/v1/user/byok/status \ -H "X-API-Key: nrp_your_key_here"
# Remove a provider keycurl -X DELETE https://neuralrepo.com/api/v1/user/byok/openai \ -H "X-API-Key: nrp_your_key_here"Testing Your Key
Section titled “Testing Your Key”Before relying on AI features, verify your key works:
curl -X POST https://neuralrepo.com/api/v1/user/byok/anthropic/test \ -H "X-API-Key: nrp_your_key_here"Success response:
{ "ok": true}Failure response:
{ "ok": false, "error": "Invalid API key"}