CleverCase Documentation
Architecture guides, developer resources, and API reference for the CleverCase legal practice management platform.
Welcome to CleverCase
CleverCase is an AI-powered legal practice management platform built on the Rakontevr infrastructure stack. These docs cover everything from first-day setup to deep architecture dives.
Start here
Getting started
Install the SDK, configure your gateway token, and run your first request in under 10 minutes.
Developer onboarding
Full team setup — clone the repo, join Tailscale, pull secrets, verify with clevercase doctor.
System architecture
Container architecture, request flows, data model, AI integration, and security layers.
CleverCase CLI
The clevercase command — setup, health checks, passthrough commands, and blocked operations.
Platform integration
CleverCase communicates with Rakontevr through authenticated HTTP channels only — no source imports, no shared monorepo paths. Every integration surface is documented:
- Rakontevr integration map — SDK, Shield, MCP, Gateway, BuilderHub, Iorek
- Platform boundary contract — what's allowed and what's blocked
- Rusakov Shield posture — sealed env, compliance, response sanitization
How it fits together
Developer resources
| Resource | Description |
|---|---|
| Rakontevr SDK | Vendored SDK modules, gateway wiring, and Gladys integration |
| MCP tools | Platform and CleverCase-specific tool catalog |
| Shield V2 | Security posture, sealed env, and response sanitization |
| BuilderHub | Studios, experiences, and unified agent |
Packages
Explore the @clevercase/* package APIs:
@clevercase/sdk— Client SDK for matters, billing, documents@clevercase/cli— Tenant-safe CLI tool@clevercase/gladys-rail— AI agent rail for legal domain@clevercase/rak-plugin— Platform plugin with schema, migrations, Shield