Guides & Cookbooks
Step-by-step guides and real-world cookbooks for Cadreen. Start with Why Cadreen, then pick the guide that matches what you're building.
How to Connect Cadreen
Start hereBase URL, API key, model name. Works with Cursor, opencode, LangChain, and any OpenAI-compatible tool.
Why Cadreen?
OverviewThe difference between a model and an intelligence layer. Outcomes, not features.
Model Provider
ReferenceThe /v1/chat/completions endpoint. Streaming, tool calling, reasoning content, what's different from OpenAI.
Model Gateway
GatewayRoute to any model via a single endpoint. Bring your own keys, set budgets, and track usage. Use it alone, or name a model on the Drop-in API to keep Cadreen's rules around it.
Responses API
RecommendedThe recommended endpoint for new projects. Governance, memory, tool execution, and conversation state in one call.
Rules 101
GovernanceCreate rules, check what it does, understand the approval flow. Every action checked.
Tool Calling
AdvancedHybrid execution. Your tools pass through. Cadreen's tools execute with governance.
Agents
CoreCreate, configure, deploy, and manage agents. Versioning, health monitoring, and lifecycle.
Federation
CollaborationConnect workspaces. Cross-workspace agent collaboration with explicit consent and governance.
External Agents
ProtocolAgent-to-agent protocol. Connect external agents via A2A with governance-gated task execution.
Cookbooks
Real-world recipes. Pick one, follow the steps, ship it.
How to save a pattern and run it with different inputs
AutomationBlueprints are reusable templates. Create one from a trace, run it with new parameters, automate it with schedules.
How to run blueprints on a timer
AutomationAttach a schedule to any blueprint — daily, weekly, or cron. Pausing, resuming, and webhook events included.
How to set company-wide AI rules with one message
GovernanceWrite a rule in natural language. Cadreen enforces it across every surface — opencode, the dashboard and more.
How to swap in Cadreen as your model provider
Getting startedChange two fields in your existing OpenAI-compatible code. Same messages, same tools — with intelligence added.
Responses API recipes
APIText generation, multi-turn conversations, tool calling, streaming, and structured output with the Responses API.
How to add human approval to any AI tool call
GovernanceThe system blocks the tool call, returns a conversational prompt. Human says yes. No custom approval UI needed.
Recovering from tool failures, and learning from fixes
ResilienceWhen tools fail, Cadreen figures out what went wrong, fixes arguments, retries. Remembers the fix for next time.
How to turn any REST API into a managed AI tool
IntegrationsUpload an OpenAPI spec. Cadreen auto-generates managed tools — ready to use, with error handling and health checks.
How to audit every AI decision with a decision audit trail
ObservabilityA successful answer from most routes, when it is a JSON object, carries a trace ID, and a successful call that is not a GET, with a JSON object for an answer, keeps its decision breakdown for you to fetch (best effort). The audit log is hash-chained, so tampering shows.
How to make AI learn from repeated interactions
LearningCadreen spots repeated patterns and proposes turning them into reusable workflows. You approve. The system gets smarter.
How to review and act on what Cadreen suggests
LearningThe system spots patterns in your usage — recurring actions, time-based routines, automation opportunities — and proposes them as tasks. You decide what runs.
How to share AI memory across opencode, dashboard, and scripts
MemoryOne workspace, five surfaces, zero sync code. A fact stored in one surface appears everywhere immediately.
How to enable GDPR, HIPAA, and PCI-DSS compliance in one call
CompliancePre-built compliance rule templates. One call. Your workspace enforces the standard across every tool call.
Build your first agent
Getting startedCreate an agent, connect services, set rules, and deploy — all from the dashboard.
Connect two workspaces
CollaborationSet up federation between two workspaces. Agents share knowledge across organizational boundaries.
Connect an external agent
IntegrationRegister an external agent via A2A protocol. Governance-gated task execution across platforms.
How to create and manage agents
CoreCreate agents from scratch or templates. Configure capabilities, set rules, deploy, and manage versions.
Build a custom connection
IntegrationWhen nothing ready-made fits, Cadreen builds a connection from the API's specification. You review the plan and an admin approves it.