← Back to PRs

#9763: feat(extensions): add Recoder plugin for AI code generation

by caelum0x open 2026-02-05 16:59 View on GitHub →
stale
## Summary Adds a new OpenClaw extension for integrating with [Recoder.xyz](https://recoder.xyz) - an AI-powered code generation and project management platform. ### Features - 🏗️ **Project Management** - Create, list, and delete projects - 🤖 **AI Code Generation** - Generate code via natural language prompts - 🐳 **Docker Sandboxes** - Manage containerized development environments - 📁 **File Operations** - Read, write, list, delete files in sandboxes - 💻 **Shell Commands** - Execute commands in sandbox containers - 🔗 **Live Preview** - Get instant preview URLs for apps ### Tools | Tool | Description | |------|-------------| | `recoder_project` | Create and manage projects | | `recoder_code` | Generate code using AI | | `recoder_sandbox` | Manage Docker containers | | `recoder_files` | Read and write files | | `recoder_shell` | Execute shell commands | | `recoder_preview` | Get preview URLs | ### API Key Management API keys are managed automatically: 1. Each OpenClaw user gets a unique API key on first use 2. Keys are cached locally at `~/.openclaw/credentials/recoder-api-keys.json` 3. Keys are automatically verified and refreshed on session start ### CLI Commands - `openclaw recoder:setup` - Configure Recoder credentials - `openclaw recoder:status` - Check connection status - `openclaw recoder:clear-keys` - Clear cached API keys ## Test plan - [x] Tested API key creation endpoint - [x] Tested API key verification endpoint - [x] Tested authenticated sandbox listing - [x] Tested sandbox creation request 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- greptile_comment --> <h2>Greptile Overview</h2> <h3>Greptile Summary</h3> This PR adds a new `extensions/recoder-plugin` package that registers six agent tools (`recoder_project`, `recoder_code`, `recoder_sandbox`, `recoder_files`, `recoder_shell`, `recoder_preview`) plus CLI setup/status commands. The extension wraps Recoder’s web/API endpoints and a docker-backend API to manage sandboxes, file operations, and command execution, while persisting per-session state under `~/.openclaw/state` and caching per-agent API keys under `~/.openclaw/credentials`. Key things to double-check before merge: tool auth depends on API key provisioning during `session_start`, and several tools snapshot config early; plus one runtime crash and one schema/implementation mismatch were found (see inline comments). <h3>Confidence Score: 2/5</h3> - This PR needs fixes before merge due to a likely broken auth flow and a runtime crash path. - The extension provisions API keys on session start but the tools snapshot plugin config at registration time, so requests can run without the generated key. Additionally, `recoder_code` can crash when a project lacks a sandbox, and `recoder_sandbox`’s schema doesn’t advertise an implemented action. - extensions/recoder-plugin/index.ts; extensions/recoder-plugin/src/tools/{recoder-*.ts} <!-- greptile_other_comments_section --> <sub>(2/5) Greptile learns from your feedback when you react with thumbs up/down!</sub> **Context used:** - Context from `dashboard` - CLAUDE.md ([source](https://app.greptile.com/review/custom-context?memory=fd949e91-5c3a-4ab5-90a1-cbe184fd6ce8)) - Context from `dashboard` - AGENTS.md ([source](https://app.greptile.com/review/custom-context?memory=0d0c8278-ef8e-4d6c-ab21-f5527e322f13)) <!-- /greptile_comment -->

Most Similar PRs