Skip to main content

Quick Start

This guide will get you from zero to a working AI assistant in just a few minutes.
Prerequisites: Make sure you have installed PicoClaw before proceeding.

Overview

Getting started with PicoClaw is a simple 3-step process:

Initialize

Run the onboarding command to create your configuration

Configure API Keys

Add your LLM provider API key to the config file

Start Chatting

Talk to your AI assistant via CLI or chat apps

Step 1: Initialize

Run the onboarding command to set up your workspace and configuration:
picoclaw onboard
This creates:
  • ~/.picoclaw/config.json — Main configuration file
  • ~/.picoclaw/workspace/ — Working directory for the agent
You should see a success message indicating that the configuration was created.

Step 2: Configure API Keys

PicoClaw needs an LLM provider to function. Open the configuration file:
vim ~/.picoclaw/config.json
# Or use your preferred editor

Basic Configuration Structure

Here’s what the config file looks like:
{
  "agents": {
    "defaults": {
      "workspace": "~/.picoclaw/workspace",
      "model_name": "gpt4",
      "max_tokens": 8192,
      "temperature": 0.7,
      "max_tool_iterations": 20
    }
  },
  "model_list": [
    {
      "model_name": "gpt4",
      "model": "openai/gpt-5.2",
      "api_key": "your-api-key",
      "request_timeout": 300
    }
  ],
  "tools": {
    "web": {
      "brave": {
        "enabled": false,
        "api_key": "YOUR_BRAVE_API_KEY",
        "max_results": 5
      },
      "tavily": {
        "enabled": false,
        "api_key": "YOUR_TAVILY_API_KEY",
        "max_results": 5
      },
      "duckduckgo": {
        "enabled": true,
        "max_results": 5
      }
    }
  }
}

Configuration Breakdown

FieldDescriptionDefault
workspaceWorking directory for the agent~/.picoclaw/workspace
model_nameName reference for the model to usegpt4
max_tokensMaximum tokens per response8192
temperatureCreativity level (0.0-1.0)0.7
max_tool_iterationsMax tool calls per conversation turn20
The model_list array defines available LLM models:
{
  "model_name": "gpt4",           // Friendly name to reference
  "model": "openai/gpt-5.2",      // Provider/model format
  "api_key": "your-api-key",      // API key for the provider
  "request_timeout": 300           // Optional: timeout in seconds
}
request_timeout is optional. If omitted or set to <= 0, PicoClaw uses the default timeout (120s).
Web search is optional but enhances the assistant’s capabilities:
  • Brave Search (recommended): Best results, 2000 free queries/month
  • Tavily: Optimized for AI agents, 1000 free queries/month
  • DuckDuckGo: No API key required, free fallback option
You can enable multiple search providers simultaneously.

Get API Keys

LLM Providers

Free Tier Options:
  • OpenRouter — 200K tokens/month, multiple models
  • Zhipu — 200K tokens/month, best for Chinese
  • Groq — Free tier, fast inference
  • Cerebras — Free tier available
Paid Options:

Web Search (Optional)

Recommended:Free Fallback:
  • DuckDuckGo — No key required (enabled by default)

Example Configurations

{
  "model_list": [
    {
      "model_name": "claude-sonnet",
      "model": "anthropic/claude-sonnet-4.6",
      "api_key": "sk-or-v1-your-openrouter-key"
    }
  ],
  "agents": {
    "defaults": {
      "model_name": "claude-sonnet"
    }
  }
}
See config.example.json in the PicoClaw repository for a complete configuration template with all available options.

Step 3: Start Chatting

Once configured, you can start using PicoClaw immediately!

CLI Chat

# Ask a single question
picoclaw agent -m "What is 2+2?"

Expected Output

When you run your first command, you should see something like:
[INFO] agent: Starting agent
[INFO] agent: Using model: gpt4 (openai/gpt-5.2)
[INFO] agent: Loading workspace from ~/.picoclaw/workspace

> What is 2+2?

The answer is 4.

[INFO] agent: Conversation complete (1 turn, 2 tool calls)
Congratulations! Your PicoClaw AI assistant is now running.

Next Steps

Connect Chat Apps

PicoClaw can integrate with multiple chat platforms:

Telegram

Easy setup with just a bot token

Discord

Simple bot token + intents configuration

WhatsApp

Native QR scan or bridge URL

QQ

AppID + AppSecret

DingTalk

Client credentials setup

WeCom

Multiple integration modes
To enable a chat app, add its configuration to config.json. Example for Telegram:
1

Create a Bot

Open Telegram and message @BotFather:
/newbot
Follow the prompts and copy the bot token.
2

Get Your User ID

Message @userinfobot on Telegram to get your user ID.
3

Add to Config

Edit ~/.picoclaw/config.json:
{
  "channels": {
    "telegram": {
      "enabled": true,
      "token": "YOUR_BOT_TOKEN",
      "allow_from": ["YOUR_USER_ID"]
    }
  }
}
4

Start Gateway

Run the gateway to connect to chat platforms:
picoclaw gateway
Now message your Telegram bot!
See the full Chat Apps Configuration guide for detailed setup instructions for all platforms.

Advanced Features

Scheduled Tasks

Set up periodic tasks and reminders with cron-like scheduling

Heartbeat

Automatic periodic task execution from HEARTBEAT.md

Custom Skills

Extend functionality with custom skill modules

Security Sandbox

Restrict agent access to specific directories

Common Commands

CommandDescription
picoclaw onboardInitialize config & workspace
picoclaw agent -m "..."Chat with the agent (one-shot)
picoclaw agentInteractive chat mode
picoclaw gatewayStart gateway for chat apps
picoclaw statusShow current status
picoclaw cron listList scheduled jobs
picoclaw cron add ...Add a scheduled job

Troubleshooting

This means you haven’t configured an LLM provider API key yet, or the key is invalid.Solution:
  1. Get an API key from one of the supported providers
  2. Add it to ~/.picoclaw/config.json in the model_list section
  3. Make sure the model_name in agents.defaults matches an entry in model_list
This is normal if you haven’t configured a search API key. PicoClaw will provide helpful links for manual searching.To enable web search:
{
  "tools": {
    "web": {
      "duckduckgo": {
        "enabled": true,
        "max_results": 5
      }
    }
  }
}
Some providers (like Zhipu) have content filtering that may block certain queries.Solution:
  • Try rephrasing your query
  • Use a different model/provider
  • Check the provider’s content policy
This happens when multiple instances of the bot are running.Solution:
  • Make sure only one picoclaw gateway is running at a time
  • Kill any existing gateway processes: pkill picoclaw

What’s Next?

Full Configuration Guide

Explore all configuration options and advanced features

Chat App Integration

Connect Telegram, Discord, WhatsApp, and more

CLI Reference

Complete command-line interface documentation

GitHub Repository

View source code and contribute
You’re all set! Enjoy your ultra-lightweight AI assistant.

Build docs developers (and LLMs) love