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.
Cadreen CLI
CLIInstall the CLI. Chat, manage memory, test policies, and see what happened from your terminal.
Model Provider
ReferenceThe /v1/chat/completions endpoint. Streaming, tool calling, reasoning content, what's different from OpenAI.
Responses API
RecommendedThe recommended endpoint for new projects. Governance, memory, tool execution, and conversation state in one call.
Rules & Policies 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.
MCP (Model Context Protocol)
IntegrationRegister Cadreen as an MCP server. Connect governance, memory, and learning to any MCP-compatible client.
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 automatically 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 policies with one message
GovernanceWrite a policy in natural language. Cadreen enforces it across every surface — opencode, SDK, CLI, dashboard.
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.
Building self-healing tool chains that learn 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
ObservabilityEvery response carries a trace ID. Fetch the full decision breakdown. Tamper-evident for compliance.
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.
Building a CI/CD pipeline with Cadreen
DevOpsGo SDK in GitHub Actions. Cadreen assesses risk, checks rules, decides: deploy, asks for permission, or blocks.
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 policy templates. One call. Your workspace enforces the standard across every tool call.
Build your first agent
Getting startedCreate an agent, connect services, set policies, and deploy — all from the dashboard or CLI.
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 policies, deploy, and manage versions.
How to build a CI/CD pipeline with Cadreen
DevOpsCadreen assesses risk in your deployment pipeline, checks rules, and decides: deploy, asks for permission, or blocks.
How to share AI memory across surfaces
MemoryOne workspace, five surfaces, zero sync code. A fact stored in one place appears everywhere immediately.