txtclaw
v0.0.2
Published
TXT CLAW CLI + SDK (preview)
Downloads
8
Maintainers
Readme
txtclaw (preview)
TXT CLAW CLI + tiny JS SDK for the developer API (private preview).
Quickstart:
pnpm dlx txtclaw@latest initSDK (JavaScript)
pnpm add txtclawimport { createTxtclawClient } from "txtclaw"
const client = createTxtclawClient({
apiKey: process.env.TXTCLAW_API_KEY,
baseUrl: process.env.TXTCLAW_API_BASE_URL, // optional
})
const { agent_id } = await client.createAgent({
systemPrompt: "You are a helpful assistant. Keep replies concise.",
})
const { reply_text } = await client.sendMessage(agent_id, {
text: "Draft a polite text asking my landlord to fix a leak.",
})
console.log(reply_text)Docs:
- https://www.txtclaw.com/agents.md
- https://www.txtclaw.com/openapi.yaml
