The Context API for AI Agents

Store and optimize context from a single source of truth. Ultracontext is the infrastructure for AI Agents.

agent.ts
1import { UltraContext } from 'ultracontext'
2
3const uc = new UltraContext({ apiKey: 'uc_...' })
4
5// Store and Optimize everything
6await uc.append('ctx_123', { role: 'user', content: '...' })
7await uc.compact('ctx_123', { strategy: 'smart' })
8
9// Retrieve anywhere, for any framework
10const messages = await uc.get('ctx_123', { format: 'vercel-ai-sdk' })

Early access