Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

Platform Overview

The Grimoire Platform is a cloud API that builds on the open source engine, adding natural language intents, policy enforcement, session management, and sandboxed execution.

What the Platform Adds

The open source CLI lets you write and run spells locally. The Platform wraps that engine in an API and adds capabilities that matter for teams and integrations:

  • Natural language intents — describe what you want in plain English, get a validated action plan back
  • Policy enforcement — define rules that automatically approve, flag, or reject actions
  • Clarification sessions — when intent is ambiguous, the API asks follow-up questions instead of guessing
  • Sandboxed execution — strategy planning runs in isolated environments
  • Audit trail — every run, decision, and policy evaluation is persisted

Feature Comparison

CapabilityOpen Source CLIPlatform API
Write and compile spellsYesYes
Simulate/previewYesYes
Onchain executionYesVia executor
Natural language intentsYes
Policy enforcementYes
Clarification sessionsYes
Sandboxed executionYes
Multi-user API keysYes
Audit persistenceLocal historyManaged database

How It Works

Intent → Plan → Validate → Preview → (optional) Execute
  1. Intent — you send natural language or a structured action plan
  2. Plan — the platform translates intent into a Grimoire spell
  3. Validate — policies are evaluated against the plan
  4. Preview — the spell runs in simulation to verify outcomes
  5. Execute — if approved, the plan is committed

If the intent is unclear, the platform enters a clarification session — asking targeted questions until the plan is unambiguous.

API Surface

EndpointPurpose
POST /v1/validateValidate an action plan against policies
POST /v1/runCreate an intent session from natural language
POST /v1/session/{id}Submit clarification answers
GET /v1/session/{id}Get current session state
Policy CRUD endpointsManage partner policies

Next Steps