crawlberg-serving-the-api

crawlberg-serving-the-api is a skill for Claude Code from xberg-io/crawlberg. It costs 66 tokens per session (1,327 once invoked), scanned A, original, MIT.

A guide for running Crawlberg as a long-running web service over HTTP. It exposes endpoints that other programs can call to scrape or crawl websites; REST is a common way for programs to communicate over the web.

In plain words
What is it for?
Use it to serve scraping and crawling requests to other applications through HTTP, with configurable host and port settings.
Why use it?
It avoids starting a separate command-line process for every request and lets existing clients made for Firecrawl's API connect to a local Crawlberg server.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Claude Code; mentions Codex; mentions OpenCode.

Part of the crawlberg plugin — 7 skills, 2 commands, 1 MCP server shipped together

Good fit Use it to serve scraping and crawling requests to other applications through HTTP, with configurable host and port settings.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xberg-io/crawlberg/crawlberg-serving-the-api
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add xberg-io/crawlberg --skill crawlberg-serving-the-api
Clone the repo
git clone --depth 1 https://github.com/xberg-io/crawlberg

Made for: Claude Code.

Or install crawlberg, the plugin that ships this one along with the rest of its 7 skills, 2 commands, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for crawlberg-serving-the-api

README.md
[![agentmods](https://agentmods.dev/badge/skills/xberg-io/crawlberg/crawlberg-serving-the-api/github.svg)](https://agentmods.dev/skills/xberg-io/crawlberg/crawlberg-serving-the-api)
Your own site
<a href="https://agentmods.dev/skills/xberg-io/crawlberg/crawlberg-serving-the-api"><img src="https://agentmods.dev/badge/skills/xberg-io/crawlberg/crawlberg-serving-the-api/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for crawlberg-serving-the-api

Your own site · 80×15
<a href="https://agentmods.dev/skills/xberg-io/crawlberg/crawlberg-serving-the-api"><img src="https://agentmods.dev/badge/skills/xberg-io/crawlberg/crawlberg-serving-the-api.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,327 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00066 $0.01327
Opus 5.5 $0.00026 $0.00531
Sonnet 5.5 $0.00013 $0.00265
Haiku 4.5 $0.00007 $0.00133

Measured 3d ago against content hash 3aa90849afae, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

crawlberg-serving-the-api scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s http://127.0.0.1:3000/v1/scrape \
plugin/.ai-rulez/skills/crawlberg-serving-the-api/SKILL.md · 124 lines

How it starts

The opening of the file, as written. The whole thing — 124 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Serving the API

crawlberg serve starts a long-running REST API server exposing the crawl engine over HTTP. The endpoints are Firecrawl v1-compatible, so existing Firecrawl clients and SDKs can point at a local crawlberg instance.

This subcommand requires the binary to be built with the optional api feature (non-default). The Homebrew tap is built with all features, so serve is available there; a from-source build needs cargo install crawlberg-cli --features api (or --features all) to include it.

Quick recipe

crawlberg serve --host 127.0.0.1 --port 3000

It logs Starting REST API server on <host>:<port> to stderr and blocks until terminated. Hit GET /health to confirm it is up.

Flags

Flag Default Purpose
--host 0.0.0.0 Address to bind to.
--port 3000 Port to listen on.

serve does not take the per-request crawl flags — it boots with the default CrawlConfig and accepts per-request options in each HTTP request body.

Endpoints

Firecrawl v1 surface:

Method + path Purpose
POST /v1/scrape Scrape a single URL (synchronous).
POST /v1/crawl Start an asynchronous crawl job → returns a job id.
GET /v1/crawl/{id} Poll crawl job status and collect results.
DELETE /v1/crawl/{id} Cancel a running crawl job.
POST /v1/map Discover URLs on a site (synchronous).
POST /v1/batch/scrape Start an asynchronous batch-scrape job → job id.
GET /v1/batch/scrape/{id} Poll batch-scrape job status and results.
POST /v1/download Download a document from a URL.

Read the full file on GitHub · 124 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 124 lines · 66 tokens per session scan A 3aa90849afae

Subscribe to this mod's changes

crawlberg-serving-the-api is a skill published in the GitHub repository xberg-io/crawlberg (185 stars, last pushed yesterday), licensed MIT. It adds 66 tokens to every session and 1,327 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-15.

Related

Other skills, from other repositories

pinchtab

Use this skill when a task needs browser automation through PinchTab: open a website, inspect interactive elements, click through flows, fill out forms, scrape page text, reuse a dedicated automation profile with user approval, export screenshots or PDFs, manage multiple browser instances, or fall back to the HTTP API…

pinchtab/pinchtab · 94 tokens

tree-sitter-language-pack

Parse and extract code intelligence from 372 programming languages using tree-sitter grammars. Use when writing code that parses source, extracts structure/imports/exports/symbols/docstrings/comments, detects a language, runs syntax diagnostics, or produces syntax-aware chunks for LLMs — in Rust, Python…

xberg-io/tree-sitter-language-pack · 89 tokens

tree-sitter-language-pack-extracting-code-structure

Use when the user wants structured code metadata from a source file — functions, classes, imports, exports, symbols, docstrings, comments, or syntax diagnostics. Covers ts-pack process feature flags, the JSON result shape, and the default feature set.

xberg-io/tree-sitter-language-pack · 52 tokens

tree-sitter-language-pack-managing-parsers

Use when the user needs to manage the tree-sitter parser cache — prefetch parsers for offline or CI runs, list what is downloaded, inspect a language, find the cache directory, or clean it. Covers ts-pack download, list, info, cache-dir, clean, and init.

xberg-io/tree-sitter-language-pack · 65 tokens

tree-sitter-language-pack-using-the-mcp-server

Use when parsing source, extracting code structure, or detecting a language through the tree-sitter-language-pack MCP server's tools, rather than shelling out to the ts-pack CLI. Covers the tool surface, the auto-installing launcher, and when MCP beats the CLI or SDK.

xberg-io/tree-sitter-language-pack · 56 tokens

tree-sitter-language-pack-chunking-for-llms

Use when the user wants to split source code into chunks for an LLM context window without breaking syntax mid-construct. Covers ts-pack process --chunk-size, why syntax-aware splits beat fixed-byte splits, picking a size, and the chunk JSON shape.

xberg-io/tree-sitter-language-pack · 52 tokens