ไธญๆ | English
PonyClaw is a lightweight personal AI assistant built with Go, focusing on low resource usage and high performance.
Note
PonyClaw is under active development. Features and APIs may change.
๐ชถ Lightweight: Built with Go for low memory footprint and minimal resource consumption
โก๏ธ Fast Startup: Compiled language provides quick startup and execution speed
๐ Cross-Platform: Supports x86_64, ARM64, RISC-V and more architectures
๐ง Easy Deployment: Single binary file, no complex dependencies
๐ค Multi-Model Support: Compatible with various LLM providers (OpenAI, Anthropic, Zhipu, etc.)
๐ฌ Multi-Channel Integration: Supports Telegram, Discord, Slack, QQ and more chat platforms
๐งฉ Full-Stack Engineer |
๐๏ธ Logging & Planning |
๐ Web Search & Learning |
|---|---|---|
| Develop โข Deploy โข Scale | Schedule โข Automate โข Memory | Discovery โข Insights โข Trends |
PonyClaw can run on Android devices via Termux:
- Install Termux from app store
- Execute in Termux:
# Download latest version (adjust version number as needed)
wget https://github.com/lansely/ponyclaw/releases/latest/download/ponyclaw-linux-arm64
chmod +x ponyclaw-linux-arm64
pkg install proot
termux-chroot ./ponyclaw-linux-arm64 onboardThen follow the "Quick Start" section to complete configuration.
Download the binary for your platform from the Release page.
git clone https://github.com/lansely/ponyclaw.git
cd ponyclaw
make deps
# Build
make build
# Build and install
make installYou can also run PonyClaw using Docker Compose without installing anything locally.
# 1. Clone repository
git clone https://github.com/lansely/ponyclaw.git
cd ponyclaw
# 2. Set API keys
cp config/config.example.json config/config.json
vim config/config.json # Set API keys, etc.
# 3. Build & Start
docker compose --profile gateway up -d
# 4. Check logs
docker compose logs -f ponyclaw-gateway
# 5. Stop
docker compose --profile gateway downTip
Docker Users: By default, Gateway listens on 127.0.0.1. To access via port mapping, set PONYCLAW_GATEWAY_HOST=0.0.0.0 in environment or update config.json.
# Ask a question
docker compose run --rm ponyclaw-agent -m "What is 2+2?"
# Interactive mode
docker compose run --rm ponyclaw-agentTip
Set your API key in ~/.ponyclaw/config.json.
Get API keys: OpenRouter ยท Zhipu
Web search is optional - get free Tavily API (1000/month) or Brave Search API (2000/month)
1. Initialize
ponyclaw onboard2. Configure (~/.ponyclaw/config.json)
{
"agents": {
"defaults": {
"workspace": "~/.ponyclaw/workspace",
"model_name": "gpt4",
"max_tokens": 8192,
"temperature": 0.7,
"max_tool_iterations": 20
}
},
"model_list": [
{
"model_name": "gpt4",
"model": "openai/gpt-4",
"api_key": "your-api-key",
"request_timeout": 300
}
],
"tools": {
"web": {
"tavily": {
"enabled": false,
"api_key": "YOUR_TAVILY_API_KEY",
"max_results": 5
}
}
}
}3. Chat
ponyclaw agent -m "Hello"That's it! You have a working AI assistant in minutes.
PonyClaw supports multiple chat platforms:
| Channel | Setup | Features |
|---|---|---|
| Telegram | โญ Easy | Recommended, voice-to-text, no public IP |
| Discord | โญ Easy | Socket Mode, groups/DMs, mature bot system |
| Slack | โญ Easy | Socket Mode (no public IP), enterprise |
| โญโญ Medium | Official bot API, good for Chinese users | |
| DingTalk | โญโญ Medium | Stream mode, no public IP, enterprise |
| WeCom | โญโญโญ Hard | Group bot (Webhook) and app (API) |
| Feishu | โญโญโญ Hard | Enterprise collaboration, feature-rich |
| Line | โญโญโญ Hard | Requires HTTPS webhook |
| OneBot | โญโญ Medium | Compatible with NapCat/Go-CQHTTP, community |
Config file: ~/.ponyclaw/config.json
PonyClaw stores data in your configured workspace (default: ~/.ponyclaw/workspace):
~/.ponyclaw/workspace/
โโโ sessions/ # Conversation sessions and history
โโโ memory/ # Long-term memory
โโโ state/ # Persistent state
โโโ cron/ # Scheduled jobs database
โโโ skills/ # Custom skills
โโโ AGENTS.md # Agent behavior guide
โโโ HEARTBEAT.md # Periodic task prompts
โโโ IDENTITY.md # Agent identity
โโโ SOUL.md # Agent personality
โโโ TOOLS.md # Tool descriptions
โโโ USER.md # User preferences
PonyClaw can perform periodic tasks automatically. Create a HEARTBEAT.md file in your workspace:
# Periodic Tasks
- Check my email for important messages
- Review my calendar for upcoming eventsThe agent will read this file every 30 minutes (configurable) and execute tasks.
PonyClaw uses a model-centric configuration approach, supporting various LLM providers:
| Vendor | model Prefix |
Get API Key |
|---|---|---|
| OpenAI | openai/ |
Get Key |
| Anthropic | anthropic/ |
Get Key |
| ๆบ่ฐฑ AI (GLM) | zhipu/ |
Get Key |
| DeepSeek | deepseek/ |
Get Key |
| Google Gemini | gemini/ |
Get Key |
| Groq | groq/ |
Get Key |
| ้ไนๅ้ฎ (Qwen) | qwen/ |
Get Key |
| Ollama | ollama/ |
Local (no key needed) |
| OpenRouter | openrouter/ |
Get Key |
Configuration example:
{
"model_list": [
{
"model_name": "gpt-4",
"model": "openai/gpt-4",
"api_key": "sk-..."
},
{
"model_name": "glm-4",
"model": "zhipu/glm-4",
"api_key": "your-key"
}
]
}| Command | Description |
|---|---|
ponyclaw onboard |
Initialize config/workspace |
ponyclaw agent -m "..." |
Chat with agent |
ponyclaw agent |
Interactive chat mode |
ponyclaw gateway |
Start gateway |
ponyclaw status |
Show status |
ponyclaw cron list |
List all scheduled tasks |
ponyclaw cron add ... |
Add scheduled task |
PonyClaw supports scheduled reminders and recurring tasks via the cron tool:
- One-time reminder: "Remind me in 10 minutes" โ triggers once after 10 minutes
- Recurring task: "Remind me every 2 hours" โ triggers every 2 hours
- Cron expression: "Remind me at 9am daily" โ uses cron expression
Tasks are stored in ~/.ponyclaw/workspace/cron/ and handled automatically.
PRs and Issues are welcome! We strive to keep the codebase clean and readable.
If you haven't configured a search API key, this is normal. To enable web search:
- Get a free API key from Tavily or Brave Search
- Add to
~/.ponyclaw/config.jsonin thetools.webconfiguration
Some providers have strict content filtering. Try rephrasing your question or using a different model.
This indicates another bot instance is running. Ensure only one ponyclaw gateway process is running at a time.
This project is licensed under the MIT License. See LICENSE file for details.


