Developers

Built for Engineers Who Ship.

One SDK, one CLI, one API. Everything you need to compose, evaluate, and ship reasoning — plus the docs to make it painless.

Quick Start

Install. Compose. Ship.

install.sh
# Install the SDK (Python) pip install cognitivestack # Or TypeScript npm install @cognitivestack/sdk # Verify install cognitivestack --version

Supported SDKs

Native SDKs for every stack your team uses. Same API surface across every language.

Py
Python
v2.3.1
TS
TypeScript
v1.8.0
Go
Go
v0.9.2
Rs
Rust
v0.4.0
First Agent

Build a Reasoning Agent in 20 Lines

agent.py
from cognitivestack import Stack, tool # Define a tool @tool def get_revenue(quarter: str) -> float: """Returns revenue for a given quarter.""" # Your SQL or API call here return query_db(quarter) # Compose the stack stack = Stack( model="gpt-4o", retrieval="pgvector", tools=[get_revenue], evals="strict" ) # Run with automatic reasoning + tool calls result = stack.run( "Compare Q3 to Q2 revenue and explain the trend." ) print(result.output) print(result.trace_url) # Full trace in dashboard
📚

Docs

Full API reference, tutorials, migration guides, and working examples for every feature.

Read docs →
⚡

API Reference

REST endpoints for every primitive. Full OpenAPI spec. Generated SDKs on demand.

API ref →
💬

Community

Discord for builders, GitHub for issues, and a weekly office hours call with our engineers.

Join Discord →
Integrations

Works With Your Stack

OpenAI
Anthropic
Llama
Mistral
Pinecone
pgvector
Weaviate
Datadog
Honeycomb
OpenTelemetry
LangSmith
GitHub Actions
Engineering Newsletter

Monthly Technical Deep-Dives

Subscribe for monthly technical deep-dives on agent architecture, inference optimization, and eval-driven development. Written by our engineering team.

No spam. Unsubscribe anytime. We never share your address.