Skip to main content

What stays the same

Your existing investment carries over:
  • Graph code — Your LangGraph agents work without modification.
  • SDK client callsget_client(), client.threads, client.runs.stream() — all the same.
  • Agent Protocol frontends — Agent Chat UI, LangGraph Studio, CopilotKit — all compatible.
  • Thread state model — Threads, checkpoints, and state inspection work identically.
  • Streaming — Same SSE modes and event format.
  • Human-in-the-loop — Same interrupt/resume patterns.

What changes

Step-by-step migration

1

Install the Aegra CLI

2

Copy your graph code

Copy your graph modules into a new project directory. Your LangGraph code works as-is — no changes needed.
3

Create aegra.json

Replace your langgraph.json with aegra.json. The structure is similar:Before (langgraph.json):
After (aegra.json):
The graphs section is identical. Aegra also reads langgraph.json as a fallback, so you can skip this step initially and rename later.
See the configuration reference for all available options including auth, HTTP, CORS, and store settings.
4

Set up your environment

Create a .env file with your API keys and database settings:
If you already have a PostgreSQL instance, set DATABASE_URL directly:
5

Start the server

This starts PostgreSQL in Docker, runs migrations, and launches the server with hot reload at http://localhost:2026.
6

Update your client URL

Change the client URL in your application code:
Everything else — thread creation, runs, streaming, state inspection — works the same.

Migrate authentication

LangSmith Deployments configures auth through a dashboard. Aegra uses a Python handler instead. Create an auth file and reference it in aegra.json:
See the authentication guide for JWT, OAuth, and Firebase examples.

Migrate tracing

LangSmith Deployments sends traces to LangSmith automatically. With Aegra, you configure tracing via environment variables and can send to any OTLP-compatible backend. To send traces to Langfuse:
You can fan out to multiple backends simultaneously:
See the observability guide for all supported backends and configuration options.

Features not yet available

A few features from LangSmith Deployments are not yet supported in Aegra. See the feature support page for the full matrix. Key gaps:
  • RemoteGraph — Not yet planned.

Get help