Configure AI provider
2 min read
Set up your own Anthropic, OpenAI, or OpenRouter API key on Spine so your agent runs on the model and the account you choose.
Bring your own key #
Spine uses a BYOK model. You provide your own API key from your preferred provider, and it gets injected into your desktop's VM. Spine does not proxy, store, or log your API calls.
You pay your AI provider directly, use your own rate limits, and keep full control of your credentials.
Supported providers #
Anthropic #
Works well for coding agents. Claude models are strong at code generation, debugging, and technical reasoning.
- Go to console.anthropic.com
- Navigate to API Keys
- Click Create Key and copy it (starts with
sk-ant-)
OpenAI #
Solid general-purpose option. GPT-4o handles a wide range of tasks.
- Go to platform.openai.com
- Navigate to API Keys
- Click Create new secret key and copy it (starts with
sk-)
OpenRouter #
Gives you access to 200+ models from multiple providers through one API key. Useful if you want to try different models or need open-source options.
- Go to openrouter.ai
- Navigate to Keys
- Click Create Key and copy it (starts with
sk-or-)
Where to enter your key #
You set your AI provider when creating a desktop:
- In the creation modal, pick your provider from the dropdown.
- Paste your API key.
- Use the model selector to find and pick the model your agent will use.
You can also update the provider on an existing desktop from its settings page.
Optional: embeddings for persistent memory #
Below the main provider config, there is an Embeddings section. Enabling it gives your agent persistent memory -- it can recall context across conversations by storing embeddings in a vector database.
To set it up:
- Pick an embeddings provider (OpenAI or OpenRouter).
- Enter the API key (can be the same key if you are using the same provider).
- Choose an embedding model (e.g.
text-embedding-3-smallfor OpenAI).
This is optional. Your desktop works fine without it, but persistent memory helps on long-running projects where context matters.
Security #
- Your API key is transmitted over TLS and injected into your VM during initialization.
- The key lives only inside your VM. It is not stored in Spine's database.
- Each desktop has its own isolated environment. Keys are not shared between desktops.
Related docs
Provider setup
Configure Anthropic, OpenAI, or OpenRouter as your AI provider on Spine using your own API key, with no vendor lock-in.
Model selection
How to pick and configure the AI model your Spine agent runs on, and what changes when you switch from one provider to another.
Embeddings and persistent memory
How to give your Spine agent long-term memory with vector embeddings, so it can recall earlier work instead of starting over.