Current documentation for curllm - Browser Automation with Multi-Provider LLM support.
# Install
pip install curllm
# Extract data (uses local Ollama by default)
curllm "https://example.com" -d "Extract all links"
# Use cloud provider (auto-detects API key from environment)
CURLLM_LLM_PROVIDER=openai/gpt-4o-mini curllm "https://example.com" -d "Extract products"
curllm supports multiple LLM providers via litellm:
| Provider | Format | Environment Variable |
|---|---|---|
| Ollama (local) | ollama/qwen2.5:7b |
- |
| OpenAI | openai/gpt-4o-mini |
OPENAI_API_KEY |
| Anthropic | anthropic/claude-3-haiku-20240307 |
ANTHROPIC_API_KEY |
| Gemini | gemini/gemini-2.0-flash |
GEMINI_API_KEY |
| Groq | groq/llama3-70b-8192 |
GROQ_API_KEY |
| DeepSeek | deepseek/deepseek-chat |
DEEPSEEK_API_KEY |
from curllm_core import CurllmExecutor, LLMConfig
# Auto-detects API key from OPENAI_API_KEY
executor = CurllmExecutor(LLMConfig(provider="openai/gpt-4o-mini"))
# Or specify explicitly
executor = CurllmExecutor(LLMConfig(
provider="anthropic/claude-3-haiku-20240307",
api_token="sk-ant-..."
))
docs/v2/
βββ architecture/ # System architecture docs
β βββ ARCHITECTURE.md # Core architecture
β βββ DSL_SYSTEM.md # π Strategy-based extraction
β βββ ATOMIC_QUERY_SYSTEM.md # DOM Toolkit
β βββ STREAMWARE.md # Component system
β βββ LLM.md # LLM integration
β βββ COMPONENTS.md # Component reference
βββ features/ # Feature documentation
β βββ FORM_FILLING.md # Form automation
β βββ ITERATIVE_EXTRACTOR.md # Atomic extraction
β βββ HIERARCHICAL_PLANNER.md # 3-level LLM optimization
β βββ VISION_FORM_ANALYSIS.md # Visual form detection
βββ guides/ # User guides
β βββ Installation.md # Setup instructions
β βββ EXAMPLES.md # Code examples
β βββ Docker.md # Docker deployment
β βββ Troubleshooting.md
βββ api/ # API reference
βββ API.md # REST API
βββ CLI_COMMANDS.md # CLI reference
See the examples/ directory for runnable code:
| Example | Description | Link |
|---|---|---|
| LLM Providers | Use OpenAI, Anthropic, Gemini, Groq | examples/llm-providers/ |
| Product Extraction | Extract product data | examples/extraction/products/ |
| Form Filling | Automate contact forms | examples/forms/contact/ |
| BQL Queries | Browser Query Language | examples/bql/ |
| Streamware | Component pipelines | examples/streamware/ |
| API Clients | Node.js, PHP clients | examples/api-clients/ |
Documentation improvements are welcome! To contribute:
.md file in docs/| π Documentation Index | β¬οΈ Back to Top | Main README |