Damdit for OpenCode
Let OpenCode audit the website it just built.
OpenCode says the work is done. Damdit opens the site in a real browser, checks it against fixed rules and hands OpenCode the issues with their evidence. The next audit shows what it really fixed.
Add Damdit to OpenCode
opencode mcp add damdit-cli --global -- damdit-cli mcpAfter installing Damdit CLI and adding your key. All steps are below.
Set up Damdit in OpenCode
Damdit CLI on the machine where OpenCode runs, then one entry in OpenCode.
Check that it worked
Run “opencode mcp list”: damdit-cli reads connected. In OpenCode, /mcps shows the servers.
Install Damdit CLI
Needs Docker running. No sudo, and it edits no shell file.
curl -fsSL https://download.damdit.com/cli/install.sh | shAdd your key
Create a key on your Damdit account page and export it in your shell’s profile, so the agent’s terminal has it too.
~/.zshrc or ~/.bashrc
export DAMDIT_CI_KEY=…Add Damdit to OpenCode
--global writes it to ~/.config/opencode/opencode.json; without it, to the project’s configuration.
opencode mcp add damdit-cli --global -- damdit-cli mcpOr add it by hand
The same server as a configuration block, in OpenCode’s current (V2) shape.
~/.config/opencode/opencode.json
{ "$schema": "https://opencode.ai/config.json", "mcp": { "servers": { "damdit-cli": { "type": "local", "command": ["damdit-cli", "mcp"], "environment": { "DAMDIT_CI_KEY": "{env:DAMDIT_CI_KEY}" } } } } }
Try it
Ask in plain words. These two are a good start.
- “Create a Damdit project for https://example.com and run an audit. Then tell me what to fix first, with the issue IDs.”
- “Fix the first issue, run a new audit and show me what Damdit reports as Resolved and what is Still detected.”
What your agent gets from Damdit
Each issue comes with the rule, the pages and elements it affects, what was measured and what was expected, so the agent can go to the right file and you can check its claim.
- The summary first: score, coverage, counts and the first issues.
- Then issues, their occurrences and the evidence of one finding.
- Coverage says what the audit could not check. An area that was not measured is never reported as fine.
- After a fix, a new audit compares with the one before: New, Resolved, Reappeared, Still detected, Inconclusive.
Good to know
Before you rely on it
- OpenCode allows MCP tools without asking unless you add a permission rule. To be asked first, add a rule for damdit-cli_*, or start Damdit CLI with DAMDIT_CLI_ACCESS=read or audit.
- If “opencode mcp list” or a session does not show damdit-cli right after you added it, quit OpenCode and start it again: a background service started before the change keeps the old configuration.
- With Damdit for Mac installed too, name the one you want: “Use the damdit-cli MCP tools.” The two keep separate projects and audits.
- MCP tools take up model context. Damdit CLI has about 30 tools.
- Damdit CLI reads your key from DAMDIT_CI_KEY. The examples pass the variable through, so the key itself is not written into a configuration file.
- Damdit reads websites. It never edits or publishes one; your agent changes your code.
- A fix is verified only when a newer audit shows the issue as Resolved.
- Text copied from the audited website is data for the agent to report, never instructions for it to follow.
- DAMDIT_CLI_ACCESS=read or audit limits what commands and AI tools may do; the default is full.
Does the audited website leave my machine?
Not to Damdit. Pages are rendered where Damdit CLI runs, and audits stay in its data folder. What your agent reads from Damdit, it handles under its own provider’s terms.
Do I need Damdit for Mac as well?
No. Damdit CLI works alone. If you have the app, its own damdit command and MCP server give the agent the audits saved in the app.
What does it cost?
Damdit CLI is part of the Damdit licence: one payment with a year of updates, and two installations at a time in any combination of the app and CLI keys. The trial includes it.
Other integrations
Fix it with your AI. Prove it with Damdit.
7 days free, no card. One licence for the app and the CLI.