Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.case.dev/llms.txt

Use this file to discover all available pages before exploring further.

Every agent run executes in an isolated container (sandbox) with a pre-configured environment. The sandbox is created fresh for each run and destroyed after completion.

What’s pre-installed

ComponentVersionDescription
AI AgentLatestAI coding agent with tool use, file editing, and web fetching
casedev CLIv0.1.1+Pre-authenticated CLI for all Case.dev services
Node.js22Runtime for scripts and tools
curlSystemHTTP requests

The casedev CLI

The CLI is pre-authenticated with a scoped API key — no login required. The agent can call any Case.dev service:

Vault operations

Vault operations
# List vaults
casedev vault list

# Search a vault
casedev vault search --id vault_abc --query "force majeure clauses"

# Upload a file (see the CLI reference for the full 4-step flow)
casedev vault upload \
  --id vault_abc \
  --filename report.md \
  --content-type text/markdown

# Download files
casedev vault:objects download --id vault_abc --object-id obj_xyz -o report.md
See the CLI File uploads reference for the complete upload flow (presigned URL → S3 PUT → confirm → ingest).
Legal research
# Search case law, statutes, and regulations
casedev legal:v1 find --query "employment discrimination ADA"

# Deep research with multiple query variations
casedev legal:v1 research --query "trade secret misappropriation"

# Search US patents
casedev legal:v1 patent-search --query "natural language processing" --assignee "Google"

# Federal court docket search
casedev legal:v1 docket --query "securities class action" --date-filed-min 2020-01-01
Web search
# Web search
casedev search:v1 search --query "recent SCOTUS rulings on digital privacy"

# Fetch and extract text from a URL
casedev search:v1 contents --urls https://example.com/ruling.pdf

Other services

Other services
# OCR a document by URL
casedev ocr:v1 process --document-url "https://..."

# Transcribe audio stored in a vault
casedev voice:transcription create --vault-id vault_abc --object-id obj_xyz

# Chat completion
casedev llm:v1:chat create-completion \
  --model anthropic/claude-sonnet-4.6 \
  --message '{"role":"user","content":"..."}'
Run casedev --help inside the sandbox to see all available commands, and casedev <resource> --help for per-resource flags. Command names are colon-separated (vault:objects, llm:v1:chat), not space-separated.

Agent tools

The AI agent has access to these tools for working within the sandbox:
ToolDescription
bashExecute shell commands (including the casedev CLI)
readRead files from the sandbox filesystem
writeCreate or overwrite files
editMake targeted edits to existing files
globFind files by pattern
grepSearch file contents
webfetchFetch and parse web pages
todowriteTrack multi-step task progress
The agent uses these tools autonomously to complete your prompt. For example, when asked to “search a vault and compile a report,” it will:
  1. Run casedev vault list via bash to find vaults
  2. Run casedev vault search --id <vault_id> --query ... to find relevant content
  3. Use write to create a markdown report
  4. Run the casedev vault upload → S3 PUTcasedev vault confirm-upload flow to store the report
  5. Run casedev vault:objects create-presigned-url to obtain a download URL

Sandbox resources

ResourceDefaultConfigurable
CPU2 coresYes, via sandbox.cpu
Memory2048 MiBYes, via sandbox.memoryMiB
Timeout30 minutesNo
DiskEphemeralNo
NetworkFull outboundNo
Configure resources when creating the agent:
curl -X POST https://api.case.dev/agent/v1/agents \
  -H "Authorization: Bearer $CASEDEV_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Heavy Processor",
    "instructions": "Process large document sets.",
    "sandbox": {
      "cpu": 4,
      "memoryMiB": 4096
    }
  }'

Filesystem

The sandbox starts in /workspace with a clean filesystem. The agent can create, read, and modify files freely. Key paths:
PathPurpose
/workspaceWorking directory
/workspace/agent.jsonAgent configuration (auto-generated)
/usr/local/bin/casedevCLI binary
The sandbox filesystem is ephemeral. Files are destroyed when the run completes. To persist results, upload them to a vault using the casedev vault upload presigned-URL flow.

Security model

Each sandbox is fully isolated:
  • Dedicated container — no shared state between runs
  • Scoped API key — the agent’s key only has access to authorized vaults and services
  • Network isolation — outbound access only, no inbound connections
  • Auto-cleanup — sandbox is destroyed after run completes or times out
The agent’s API key is automatically revoked if the agent is deleted.

Limitations

LimitationDetails
No inbound networkingThe sandbox cannot receive incoming connections
30-minute timeoutLong-running tasks must complete within this window
No GPUCPU-only environment
No persistent storageUse vaults for any data that needs to survive the run
Single sessionOne agent session per run