Integrations
OpenClaw
Self-hosted personal AI assistant with a gateway and chat apps. Step-by-step setup with Laras Router.
This guide connects OpenClaw to Laras Router. Every step was checked against the OpenClaw documentation.
You need an API key (lr_live_…) and a topped-up balance. New to Laras Router? Start with the Quickstart.
Set up
Set your API key
Make your key available to the OpenClaw Gateway process.
export LARAS_API_KEY="lr_live_your_key_here"
Add the provider
In ~/.openclaw/openclaw.json, add a provider under models.providers with api set to openai-completions, and make its model the default.
{
agents: {
defaults: {
model: { primary: "laras/deepseek-flash" },
models: { "laras/deepseek-flash": { alias: "laras" } },
},
},
models: {
mode: "merge",
providers: {
laras: {
baseUrl: "https://api.larasrouter.com/v1",
apiKey: "${LARAS_API_KEY}",
api: "openai-completions",
models: [
{
id: "deepseek-flash",
name: "DeepSeek Flash (Laras Router)",
reasoning: false,
input: ["text"],
contextWindow: 1000000,
maxTokens: 32000,
},
],
},
},
},
}
Switch to the model
Switch to it with /model laras/deepseek-flash, or run openclaw models set laras/deepseek-flash.
Good to know
- The entry in
models.providers.laras.modelsis what registers the model; theagents.defaults.modelsentry adds it to the model list with an alias. If you restrict models withagents.defaults.modelPolicy.allow, addlaras/deepseek-flashthere too. - Keep
inputtext only: Laras Router does not accept image input. WithoutcontextWindow, OpenClaw assumes 200,000 tokens.
Settings and screens can change between versions. If something looks different, check the OpenClaw documentation. For other tools, see all integrations.