Skip to content

Add openclaw as a supported AI tool#15

Merged
avelino merged 3 commits intomainfrom
avelino/openclaw-support
Feb 18, 2026
Merged

Add openclaw as a supported AI tool#15
avelino merged 3 commits intomainfrom
avelino/openclaw-support

Conversation

@avelino
Copy link
Owner

@avelino avelino commented Feb 18, 2026

openclaw tui runs an interactive terminal UI and wasn't recognized as a known tool, so users had to install and configure it manually.

Registered openclaw across the full tool lifecycle: CLI listing, remote install via agent, devtools config/state, and project config. Uses npm install -g openclaw consistent with the other npm-based tools.

Sources:

openclaw tui runs an interactive terminal UI and wasn't recognized as a
known tool, so users had to install and configure it manually.

Registered openclaw across the full tool lifecycle: CLI listing, remote
install via agent, devtools config/state, and project config. Uses
`npm install -g openclaw` consistent with the other npm-based tools.

Sources:
- https://docs.openclaw.ai/help/faq
- https://www.digitalocean.com/community/tutorials/how-to-run-openclaw

Signed-off-by: Avelino <31996+avelino@users.noreply.github.com>
@avelino avelino added the ai-tool AI/LLM tool integrations (Copilot, Claude, etc) label Feb 18, 2026
Signed-off-by: Avelino <31996+avelino@users.noreply.github.com>
Comment on lines 57 to 66
#[serde(default = "default_true")]
pub opencode: bool,

/// Install OpenClaw AI assistant (with TUI mode: openclaw tui)
#[serde(default = "default_true")]
pub openclaw: bool,

/// Install GitHub Copilot CLI
#[serde(default = "default_true")]
pub copilot: bool,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: The openclaw field is missing from the cloud-init template. Due to #[serde(default = "default_true")] in DevToolsConfig, it will always be installed, ignoring user configuration.
Severity: CRITICAL

Suggested Fix

Add the openclaw field and other missing AI tool fields (e.g., cursor, cody, aider, gemini) to the devtools.json generation logic in the cloud-init template. Ensure their values are correctly populated based on the user's configuration.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.

Location: src/agent/devtools/types.rs#L57-L66

Potential issue: The `devtools.json` file generated by the cloud-init template is
missing the `openclaw` field, as well as fields for other AI tools like `cursor`,
`cody`, `aider`, and `gemini`. When the agent's `DevToolsConfig` struct is deserialized
from this JSON, the `#[serde(default = "default_true")]` attribute causes these missing
fields to default to `true`. This results in these tools always being installed on new
VMs, regardless of the user's configuration, even if they are explicitly set to false.
This overrides user intent and wastes installation time and resources.

@avelino avelino merged commit ef6c52d into main Feb 18, 2026
12 checks passed
@avelino avelino deleted the avelino/openclaw-support branch February 18, 2026 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-tool AI/LLM tool integrations (Copilot, Claude, etc)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant