Caricamento in corso...
Caricamento in corso...
Last synced: Today, 22:00
Technical reference for the OpenClaw framework. Real-time synchronization with the official documentation engine.
Use this file to discover all available pages before exploring further.
SGLang can serve open-source models via an OpenAI-compatible HTTP API. OpenClaw can connect to SGLang using the
openai-completionsOpenClaw can also auto-discover available models from SGLang when you opt in with
SGLANG_API_KEYmodels.providers.sglangOpenClaw treats
sglangstream_options.include_usagetext* `http://127.0.0.1:30000/v1`
text```bash} export SGLANG_API_KEY="sglang-local" ```
textOr configure the model manually: ```json5} { agents: { defaults: { model: { primary: "sglang/your-model-id" }, }, }, } ```
When
SGLANG_API_KEYmodels.providers.sglangGET http://127.0.0.1:30000/v1/modelsand convert the returned IDs into model entries.
Use explicit config when:
contextWindowmaxTokensjson5{ models: { providers: { sglang: { baseUrl: "http://127.0.0.1:30000/v1", apiKey: "${SGLANG_API_KEY}", api: "openai-completions", models: [ { id: "your-model-id", name: "Local SGLang Model", reasoning: false, input: ["text"], cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 }, contextWindow: 128000, maxTokens: 8192, }, ], }, }, }, }
© 2024 TaskFlow Mirror
Powered by TaskFlow Sync Engine