How do I use Leiolai in Continue?

Add Leiolai to Continue’s config.yaml as an openai provider using model leiolai-1 and the Leiolai /v1 base URL. Keep the API key in a secret setting, give the model the chat role, and reload Continue to select Leiolai for the conversation.

Which model configuration fields do I need?

Add a model named Leiolai with provider: openai, model: leiolai-1, apiBase: https://api.leiolai.com/v1, and roles containing chat. Provide apiKey using Continue’s secret reference rather than a real key in shared YAML.

How do I supply the key without committing the value?

To connect Leiolai through Continue in an IDE, store LEIOLAI_API_KEY in a supported .env file, such as ~/.continue/.env, and reference the secret from config.yaml. Reload Continue after updating the secret. Keep the .env file out of source control and shared screenshots.

Protect the API key

How do I select Leiolai after changing the configuration?

Reload Continue after saving config.yaml, then choose Leiolai from the model selector. If the model does not appear, check the YAML indentation, provider name, and chat role before troubleshooting the API connection.

Which key restriction fits private project work?

Use a Leiolai Private-only key for confidential code and conversations. A restricted key can omit mode; an unrestricted key must send mode on each request.

Private and Research request settings

Can I use this chat model as an embedding provider?

No. This Leiolai setup uses Continue’s chat role. Configure an embedding provider separately; the Leiolai API does not provide an embeddings endpoint.

What about Continue’s Edit and Apply roles?

Continue can use the Leiolai chat model for editing tasks unless you configure the Edit and Apply roles separately. Check which model each role selects in your setup.

What should I check if the connection fails?

Check Continue’s Leiolai /v1 base URL, model ID, API key, and key mode restriction. If Continue reports a request error, read the returned API code and check the request field identified by the error.

Diagnose the reported error

How can I ask for a focused review in Continue?

Ask Leiolai in Continue to review a specific boundary condition, state transition, error path, or unexpected output. Ask for the file and line supporting each finding so the review remains easy to verify.

Ask for a useful code review