Continue Integration with The Grid | config.yaml Setup
Set up Continue with The Grid in config.yaml. Add your API key, point to the OpenAI-compatible endpoint, and map models to chat, edit, and autocomplete.
Prerequisites
Setup
1. Store the key in Continue's local .env
.envTHEGRID_API_KEY=your-consumption-api-key-here2. Add Grid instruments to config.yaml
config.yamlname: My Continue Config
version: 1.0.0
schema: v1
models:
- name: Grid Code Prime
provider: openai
model: code-prime
apiKey: ${{ secrets.THEGRID_API_KEY }}
apiBase: https://api.thegrid.ai/v1
roles:
- chat
- edit
- name: Grid Code Standard
provider: openai
model: code-standard
apiKey: ${{ secrets.THEGRID_API_KEY }}
apiBase: https://api.thegrid.ai/v1
roles:
- apply
- autocomplete
- name: Grid Agent Prime
provider: openai
model: agent-prime
apiKey: ${{ secrets.THEGRID_API_KEY }}
apiBase: https://api.thegrid.ai/v1
roles:
- subagent
- name: Grid Text Standard
provider: openai
model: text-standard
apiKey: ${{ secrets.THEGRID_API_KEY }}
apiBase: https://api.thegrid.ai/v1
roles:
- summarize3. Add an embeddings provider
4. Reload Continue
Verification
Troubleshooting
Last updated
Was this helpful?