You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
luckclaw is a lightweight personal AI assistant rebuilt in Golang based on nanobot. It supports multi-channel access (Discord, Telegram, Slack, etc.), multiple LLM providers, multiple interaction modes, result marking, Skills extensions, sub-agent management, and MCP server integration. It can be deployed on Luckfox Linux development boards and x86_64 PCs.
⚠️Warning: This software is currently in development and testing phase. Security cannot be fully guaranteed. It is strongly recommended NOT to deploy this software in production environments.
Initialize: run luckclaw onboard to create a default config (includes all configurable items and default values).
Configure: edit ~/.luckclaw/config.json as needed, or run luckclaw config to enter the interactive configuration wizard.
Interact: choose a run mode that fits your workflow.
Agent: run luckclaw agent to start an interactive session.
TUI: run luckclaw tui to start the terminal UI (currently supports ssh terminals only).
Gateway: run luckclaw gateway to start the gateway, then connect a channel platform to interact with the agent.
Remote terminal control (optional): in any chat/session, use /terminal to bind an SSH target; when enabled, the exec tool runs on the remote host, while web tools still run locally.
Add: /terminal add dev ssh user@1.2.3.4 --port 22 --identity ~/.ssh/id_rsa
Password auth: /terminal add dev ssh user@1.2.3.4 --password-env LUCKCLAW_SSH_PASS (recommended) or --password <pass> (in-memory only)
Use: /terminal use dev (or /terminal off to go back to local)
Transfer: /terminal upload ./file.txt /tmp/file.txt or /terminal download /tmp/file.txt ./file.txt
Remote skills execution (optional): when a remote terminal is active, /skill <name> runs in a remote workspace under the remote host home directory and is prevented from touching local files.
1.6 Entry point and CLI
Description
Entry
cmd/luckclaw/main.go → cli.NewRootCmd().Execute()
CLI framework
Cobra
Root command
luckclaw
II. Configuration file
2.1 Configuration file location
Source
Path
Default
~/.luckclaw/config.json
LUCKCLAW_CONFIG
Specify the path to config.json directly
LUCKCLAW_HOME
Data root (default ~/.luckclaw), ConfigPath = {LUCKCLAW_HOME}/config.json
Initialize: run luckclaw onboard to create a default config (includes all configurable items and default values). Force reset config: run luckclaw onboard --force to reset the config to defaults. Reference template: luckclaw config example prints an example configuration document.
Suitable for resource-limited environments (embedded devices, low-storage systems). When enabled, the agent will not automatically download or install packages; instead, it provides clear install instructions for you to run manually.
Local Directory: {workspace}/skills/{name}/SKILL.md
Remote Directory: When a remote terminal is active, skills are also discovered from ~/.luckclaw/workspace/skills/ and ~/.luckclaw_remote/ws/{termName}/{sessionHash}/skills/ on the remote host.
Record successful experience to LUCK.md and update self-improvement library; supports list|last|<title>
/badluck
Record failure experience to BADLUCK.md to avoid repeating mistakes; supports list|last|<avoid_note>
/stop
Force stop all running tasks in the current session
/mcp
List connected MCP servers and their tools
/sessions
Manage and switch sessions (TUI mode only)
/heartbeat
View heartbeat status (gateway mode only)
/cmdname
Custom slash command, see configuration file section for format
10.2 Luck & BadLuck Mechanism
Luckclaw has a built-in experience-based learning mechanism that records model behavior through manual feedback:
LUCK: When the model perfectly completes a complex task, run /luck <description>. This stores the complete tool call chain in LUCK.md and uses it as reference for similar tasks in the future.
BADLUCK: When the model makes mistakes or produces unexpected results, run /badluck <improvement suggestion>. This records the failure reason and persists it to the self-improvement library via the record_correction tool to prevent the model from making the same mistakes again.
These experience data jointly drive the Agent's Self-Improving capability.
XI. Configuration wizard
Run luckclaw config to enter the interactive TUI and configure:
Agent (workspace, model, provider)
Providers (API key, API base)
Channels (enable/disable and channel options)
Gateway
Tools (exec, web, browser, built-ins, etc.)
Save and exit
XII. License
This project is licensed under the MIT License - see the LICENSE file for details.