Run a configurable AI assistant on your nself backend. ɳClaw connects to users via Telegram, web chat, or WebSocket, reasons using nself-ai, routes messages through nself-mux, and can browse the web via nself-browser. Each deployment gets its own identity defined in a identity.yaml file.
nself-claw requires a Pro membership and depends on nself-ai and nself-mux. nself-browser is optional but unlocks the BrowseUrl tool.
# Install required dependencies first
nself license set nself_pro_...
nself plugin install ai mux
# Optional: install browser for web research capability
nself plugin install browser
# Install claw
nself plugin install claw
nself build
nself start| Variable | Required | Description |
|---|---|---|
PLUGIN_CLAW_IDENTITY_PATH | Yes | Path to your identity.yaml configuration file |
PLUGIN_CLAW_ADMIN_PASSWORD | Yes | Password to protect the admin endpoints |
The identity file defines your assistant's persona, integrations, and capabilities:
name: Aria
persona: |
You are Aria, a helpful assistant for Acme Corp.
You are knowledgeable, concise, and friendly.
When asked about pricing, refer users to acme.com/pricing.
# Telegram integration (optional)
telegram_token: "1234567890:AAFxxxxxxxxxxxxxxxx"
# Tools the assistant can use
tools:
- get_weather # built-in weather lookup
- BrowseUrl # web browsing (requires nself-browser)
- send_email # send via nself-mux
# AI model to use
model: gpt-4o # or claude-3-5-sonnet-20241022, gemini-1.5-pro, etc.identity.yaml with your persona and Telegram bot token (create a bot at @BotFather).PLUGIN_CLAW_IDENTITY_PATH=/etc/nself/identity.yaml and PLUGIN_CLAW_ADMIN_PASSWORD in your .env.nself build && nself start and message your Telegram bot. It should respond using the configured persona and model.| Tool | Requires | Description |
|---|---|---|
get_weather | Built-in | Look up current weather for any city |
BrowseUrl | nself-browser | Open any URL and read its content |
send_email | nself-mux | Send email via the nself-mux mail channel |
ɳClaw maintains per-user memory automatically. Each conversation builds a persistent context that the assistant recalls in future sessions.
# View memory for a user
curl http://127.0.0.1:3710/claw/memory/user-uuid
# View memory stats
curl http://127.0.0.1:3710/claw/memory/user-uuid/stats
# Clear memory for a user
curl -X DELETE http://127.0.0.1:3710/claw/memory/user-uuid| Endpoint | Method | Description |
|---|---|---|
/claw/chat | POST | Send a message and get a response (non-streaming) |
/claw/chat | WS | WebSocket for streaming chat responses |
/claw/sessions | GET | List active chat sessions |
/claw/memory/:user_id | GET | Read stored memory for a user |
/claw/memory/:user_id | DELETE | Clear all memory for a user |
/claw/memory/:user_id/stats | GET | Memory usage stats (tokens, entries, last updated) |
/health | GET | Check plugin health and dependency status |
nself plugin remove clawPort: 3710 | Tier: Pro ($1.99/mo) | Requires: nself-ai, nself-mux | Last Updated: March 2026