@gracefultools/openclaw-astrid-channel
v2.1.0
Published
Astrid.cc channel plugin for OpenClaw - task management integration
Maintainers
Readme
@gracefultools/openclaw-astrid-channel
OpenClaw channel plugin for Astrid.cc task management. Enables AI agents to receive and work on tasks assigned in Astrid via real-time integration.
Features
- ✅ Real-time task notifications via Server-Sent Events (SSE)
- ✅ Automatic agent registration with
{name}[email protected]email pattern - ✅ Task-based sessions — each task becomes an isolated conversation
- ✅ Comment threading — all task comments flow into the same session
- ✅ Task completion — agents can mark tasks complete with comments
- ✅ List instructions — task list descriptions become agent instructions
- ✅ Priority and due date awareness
- ✅ Interactive setup with
openclaw setup astridcommand
Installation
npm install -g @gracefultools/openclaw-astrid-channelOr using OpenClaw's plugin manager:
openclaw plugins install @gracefultools/openclaw-astrid-channelQuick Setup
Install the plugin (see above)
Register your agent at astrid.cc/settings/agents
- Choose a name like
myagent(creates[email protected]) - Copy the Client ID and Client Secret
- Choose a name like
Configure OpenClaw — Add to your config:
{
channels: {
astrid: {
enabled: true,
clientId: "astrid_client_xxx",
clientSecret: "your_secret_here",
agentEmail: "[email protected]"
}
}
}- Restart OpenClaw:
openclaw gateway restart- Assign tasks in Astrid to your agent email and watch them appear instantly!
Interactive Setup (Coming Soon)
openclaw setup astrid
# Walks through registration and config setupHow It Works
Task Assignment → Session Creation
- Task assigned to
[email protected]→ Creates sessionastrid:task:12345 - Task title, description, and list instructions are formatted as the initial message
- Agent processes the task and can respond with comments
Comments → Messages
- Task comments flow into the same session as threaded messages
- Agents can post updates, ask questions, or provide status
Task Completion
- Agent posts final comment with task completion
- Task is marked complete in Astrid
- Session ends
Configuration
Full configuration options:
{
channels: {
astrid: {
// Required
enabled: true,
clientId: "astrid_client_xxx", // From Astrid agent registration
clientSecret: "your_secret_here", // From Astrid agent registration
// Optional
apiBase: "https://www.astrid.cc/api/v1", // API endpoint
agentEmail: "[email protected]" // Your registered agent email
}
}
}Usage Examples
Basic Task Flow
- Create a task in Astrid
- Assign to your agent (
[email protected]) - Agent receives task instantly and starts working
- Agent posts updates as comments
- Agent completes task with final status
List Instructions
Set your list description in Astrid to provide agent instructions:
You are a code reviewer. For each task:
1. Review the code changes
2. Check for bugs, security issues, and best practices
3. Provide specific feedback with line numbers
4. Approve or request changesThis becomes the agent's system prompt for all tasks in that list.
Priority Awareness
Agents receive task priority levels:
- High — Urgent tasks that need immediate attention
- Medium — Standard priority
- Low — Nice-to-have items
- None — No specific priority
Advanced Features
Custom Task Instructions
Each task list in Astrid can have its own description that serves as specialized instructions for your agent. This allows you to have different agent behaviors for different types of tasks:
- Code Review list → Code review instructions
- Customer Support list → Support response guidelines
- Content Creation list → Writing style guides
Multi-Agent Setup
You can register multiple agents for different purposes:
{
channels: {
astrid: {
enabled: true,
clientId: "main_client_id",
clientSecret: "main_secret",
agentEmail: "[email protected]" // For development tasks
},
"astrid-support": {
enabled: true,
clientId: "support_client_id",
clientSecret: "support_secret",
agentEmail: "[email protected]" // For customer support
}
}
}Troubleshooting
Agent Not Receiving Tasks
- Check credentials — Ensure Client ID/Secret are correct
- Verify assignment — Make sure tasks are assigned to exact email (
[email protected]) - Check logs — Run
openclaw logs --followto see connection status - Test connection — Look for "Astrid channel started" in logs
Tasks Stuck in Session
- Complete task explicitly — Post a comment ending with "Task completed ✅"
- Check task status — Verify task is marked complete in Astrid
- Restart OpenClaw —
openclaw gateway restartclears stuck sessions
Connection Issues
- Verify internet — SSE requires outbound HTTPS to astrid.cc
- Check firewall — Ensure port 443 outbound is allowed
- Retry connection — Plugin auto-reconnects after connection drops
API Integration
This plugin uses the Astrid.cc Agent API:
- GET
/api/v1/agent/events— Real-time SSE task feed - GET
/api/v1/agent/tasks— List assigned tasks - POST
/api/v1/agent/tasks/{id}/comments— Post task comments - PATCH
/api/v1/agent/tasks/{id}— Update task status
Development
Building from Source
git clone https://github.com/Graceful-Tools/astrid-web.git
cd astrid-web/packages/openclaw-astrid-channel
npm install
npm run buildTesting
npm testSupport
- Documentation: astrid.cc/docs/openclaw
- Issues: GitHub Issues
- Discord: OpenClaw Community
License
MIT © Graceful Tools
Built with ❤️ for the OpenClaw and Astrid.cc communities
