Overview
Integrate CodeAlive with OpenClaw to give your personal AI agent deep contextual understanding of your entire codebase. OpenClaw supports MCP natively, so CodeAlive tools are available out of the box.Prerequisites
- OpenClaw installed and running
- CodeAlive account with API key (Sign up here)
- Indexed repositories in your CodeAlive dashboard
Installation
Get Your API Key
Get your API key from app.codealive.ai/settings/api-keys.
Add MCP Server to openclaw.json
Edit your OpenClaw configuration file at Docker (STDIO):Replace
~/.openclaw/openclaw.json and add the CodeAlive MCP server under agents.main.mcpServers:Remote HTTP (recommended):YOUR_API_KEY_HERE with your actual API key.OpenClaw uses JSON5 format — comments and trailing commas are allowed in the config file.
Restart OpenClaw
OpenClaw watches
openclaw.json for changes and applies them automatically. If the server doesn’t pick up the new config, restart it.Available Tools
Once connected, OpenClaw can use these CodeAlive tools:| Tool | Description |
|---|---|
codebase_search | Semantic code search across indexed repositories |
codebase_consultant | AI-powered Q&A with full codebase context |
get_data_sources | List available repositories and workspaces |
fetch_artifacts | Retrieve full source code for search results |
Installing the CodeAlive Skill
For workflow guidance and multi-step exploration patterns, also install the CodeAlive skill:| Scope | Path |
|---|---|
| Project | skills/codealive-context-engine/ |
| User | ~/.openclaw/skills/codealive-context-engine/ |
Publishing to ClawHub
The CodeAlive Context Engine skill is also available on ClawHub, OpenClaw’s skill marketplace:Troubleshooting
MCP server not connecting
MCP server not connecting
- Verify your API key is correct
- Check that
openclaw.jsonis valid JSON5 (watch for syntax errors) - Ensure
"transport": "streamable-http"is set for the remote option - Check OpenClaw logs for MCP initialization errors
Tools not appearing
Tools not appearing
- Confirm the
codealiveentry is insideagents.main.mcpServers - Restart OpenClaw if config auto-reload didn’t trigger
- Verify the API key has not expired
Docker STDIO not working
Docker STDIO not working
Ensure Docker is installed and running: