Choose Your Path
Grimoire has two entry points. Both run the same underlying engine — the difference is where execution lives and what's built on top.
At a Glance
| Open Source CLI | Platform API | |
|---|---|---|
| Where it runs | Your machine or CI | Grimoire cloud |
| How you interact | .spell files + terminal | REST API |
| Natural language intents | — | Yes |
| Policy enforcement | Manual (constraints in spell) | Automated (rules via API) |
| Clarification sessions | — | Yes |
| AI advisory decisions | Yes (model of your choice) | Yes |
| Audit persistence | Local SQLite | Managed database |
| Onchain execution | Your private key | Via executor |
| Multi-user / API keys | — | Yes |
| Cost | Free, open source | Contact for pricing |
Open Source CLI
The CLI is a local tool. You write spells, validate them, simulate against live protocol data, and execute with your own key.
npm i -g @grimoirelabs/cli
grimoire simulate spells/rebalance.spell --chain 1
grimoire cast spells/rebalance.spell --chain 1 --key-env PRIVATE_KEY --rpc-url $RPC- Developers building and testing strategies locally
- Quant teams who want full control over execution
- Protocol integrations and CI/CD automation
- Agent workflows where an LLM authors and runs spells
- Self-custody: you hold the key, nothing goes through a third party
- RPC endpoint
- Private key
- Simulation and dry-run steps
- Advisory model API keys
Platform API
The Platform wraps the same engine in a cloud API. You send an intent — in natural language or as a structured action plan — and get back a validated preview. Policy enforcement runs automatically against your configured rules.
curl -X POST https://api.grimoire.run/v1/run \
-H "x-api-key: YOUR_KEY" \
-d '{
"partner_id": "YOUR_PARTNER_ID",
"user_message": "Swap 500 USDC to ETH on Uniswap",
"user_context": {"chain": "ethereum"}
}'- Wallets and consumer apps that want to let users describe actions in plain English
- Teams who want policy enforcement without embedding rules in every spell
- Multi-user products where different API keys need different permissions
- Integrations that don't want to manage RPC endpoints or execution infrastructure
- Hosted execution engine
- Natural language → action plan translation
- Clarification sessions when intent is ambiguous
- Scoped API keys per partner or user
- Managed audit persistence
Get started with the Platform →
Still Not Sure?
If you're writing a DeFi strategy yourself and running it from a terminal or a script — use the CLI.
If you're building a product where users describe what they want and you need to validate and execute on their behalf — use the Platform.
You can also combine both: use the CLI to author and test spells, then submit them to the Platform for policy validation before live execution.