Extract from website
Prefill the wizard or CLI from a public marketing or docs page.
Wizard
- Open
/wizard. - Paste
https://…and click Extract from website. - Review every field. Product copy (price, SLA) is not the whole company story until you confirm it.
CLI
With @agentkbase/cli installed (npm install -g @agentkbase/cli):
brain extract-url https://example.com --json
brain extract-url https://example.com --init ./my-appFrom the monorepo: pnpm brain extract-url … (same flags).
### Local LLM test (your key, not Vercel)
The CLI reads ANTHROPIC_API_KEY / OPENAI_API_KEY from your shell, not from Next .env.local unless you load it.
One shot with npx (published package):
ANTHROPIC_API_KEY='sk-ant-…' npx @agentkbase/cli extract-url https://auditamia.com/en --deep --jsonMonorepo (latest code): put the key in apps/web/.env.local, then:
pnpm run build:packages
pnpm brain:extract https://auditamia.com/en --deep --jsonpnpm brain:extract sources apps/web/.env.local before running extract-url.
Success: JSON has "method": "anthropic" (or "openai") and scan log steps with "usedLlm": true. Without a key you get "method": "heuristic" and a warning in warnings.
Multi-page and deep scan: 08-multi-page-extract.md.
How analysis works
- Fetch public HTML (size and timeout limits apply).
- Parse title, meta/OG, headings, and substantive paragraphs.
- Synthesize a company oriented description from the hero section (not meta alone when meta is a short SKU line).
- Optional LLM pass: if
ANTHROPIC_API_KEYis set (preferred), Claude refines the JSON (method: "anthropic"). OtherwiseOPENAI_API_KEY(method: "openai"). Models:ANTHROPIC_EXTRACT_MODELdefaultclaude-3-5-haiku-latest;OPENAI_EXTRACT_MODELdefaultgpt-4o-mini.
Response includes method, warnings, and raw for transparency.
Limits
- Public http/https only (no localhost or private IPs).
- HTML up to 512KB, 12 second timeout.
- Heuristic synthesis cannot invent customers or metrics not on the page.
Always keep human review before export.
What extract does *not* do
- No Cursor skills — only
brain/facts, stories, and open questions. Import skills from SkillTree or writeSKILL.mdyourself. - No RAG index — it reads one public URL, not your whole doc corpus.
- Heuristic vs LLM — without
ANTHROPIC_API_KEYorOPENAI_API_KEY, synthesis uses headings and body text only; set a key on Vercel or locally for a second pass.
Richer results
- Paste the marketing home URL (not only
/pricingunless that is all you have). - After extract, add repo specific facts: stack, deploy, ICP, metrics.
- Copy founder notes from
agent.mdor internal docs intobrain/facts/. - For Auditamia-style sites, confirm sample vs live deliverable in open questions.