@ckanthony/opencode-crawl4aiCrawl4AI plugin for OpenCode - web scraping, crawling, LLM extraction, and structured data via the Crawl4AI CLI
1
19
3 in 7 days
26.3
Multi-signal model
2 months ago
2026-05-31
Install and configure
opencode.jsonWrites to this project's opencode.json — applies to this repository only.
opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["@ckanthony/opencode-crawl4ai@1.0.0"]
}Writes to ~/.config/opencode/opencode.json — applies to every project.
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["@ckanthony/opencode-crawl4ai@1.0.0"]
}If you want to modify the plugin locally, install it into the project and reference the local path.
shell
pnpm add -D @ckanthony/opencode-crawl4aiopencode loads npm dependencies through its embedded runtime on startup and caches them locally — no manual global install needed.
OpenCode plugin for Crawl4AI — gives your AI agent reliable web scraping, deep crawling, LLM-powered extraction, and structured data via the Crawl4AI CLI.
Installation
1. Install the OpenCode plugin
npm install -g @ckanthony/opencode-crawl4ai
Or add it to your opencode.json:
{
"$schema": "https://opencode.ai/config.json",
"plugins": ["@ckanthony/opencode-crawl4ai"]
}
Then install the Crawl4AI CLI globally:
pip install -U crawl4ai
# or
pipx install crawl4ai
After installation, run the browser setup once:
crwl --setup
What it does
This plugin registers the Crawl4AI CLI skill with OpenCode. Once installed, the agent can:
- Scrape any webpage to clean markdown, HTML, or structured data
- Deep crawl entire websites recursively (BFS or DFS)
- LLM Q&A — ask questions about page content using AI
- Structured extraction — extract data matching a JSON schema via LLM
- Content filtering — filter pages by relevance, regex, or cosine similarity
- Parallel crawling — run multiple scrapes in parallel for speed
All output is written to a .crawl4ai/ directory to avoid flooding context.
Docker Server Mode (Optional)
If you prefer to run Crawl4AI as a server instead of using the CLI, you can start it via Docker:
docker pull unclecode/crawl4ai:latest
docker run -d -p 11235:11235 --shm-size=1g unclecode/crawl4ai:latest
Then configure the agent to use http://localhost:11235 as the base URL. The skill covers both CLI and REST API usage.
Links
License
MIT