@charivo/llm-client-openclaw
v0.0.7
Published
OpenClaw LLM client for Charivo (local/testing)
Readme
@charivo/llm-client-openclaw
Direct OpenClaw browser LLM client for Charivo.
Use this for local development, experiments, or when you explicitly accept
browser-to-OpenClaw traffic. For production browser apps, prefer a server route
plus @charivo/llm-client-remote.
Install
pnpm add @charivo/llm-client-openclawUsage
import { createOpenClawLLMClient } from "@charivo/llm-client-openclaw";
const client = createOpenClawLLMClient({
token: "your-token",
baseURL: "http://127.0.0.1:18789/v1",
agentId: "main",
});
const message = await client.call([
{ role: "user", content: "Hello" },
]);Config
The client reuses OpenClawLLMConfig from @charivo/llm-provider-openclaw:
tokenbaseURL?agentId?model?temperature?maxTokens?
