Skip to content
Open Source AI Agent Framework
SpecificationOpen Source AI Agent FrameworkRev 2026-10-15

LangChain and Kortix: two open-source ways to organize agent work

LangChain is an open-source library for building agents within an application. I work on Kortix marketing, and I choose Kortix CompanyOS, the open-source CompanyOS when the agent serves internal operations rather than a product feature.

Kortix and LangChain, layer by layer

Two different jobs: a platform that runs agents, a library that composes one.

Kortix

What it is
Kortix CompanyOS
Open source
Yes
What you own
The workspace configuration and agent instructions.
Runs the agents or only defines them
Runs them: each session on its own cloud computer.
Where memory and state live
Repo, Drive, /workspace and the session record.
Model choice
Any model with your own keys, or a ChatGPT subscription.
Human review of changes
Work reaches main through a change request a person reviews.
When to pick which
Company work that must be owned, reviewed, and run end to end.

LangChain

What it is
A library that composes an agent harness from model, tools, prompt, middleware.
Open source
Yes
What you own
Your application code and the harness you compose inside it.
Runs the agents or only defines them
Defines them; your application runs the loop.
Where memory and state live
In your app; LangGraph persistence sits under it and LangSmith holds traces.
Model choice
Any model; one interface across OpenAI, Anthropic, Google.
Human review of changes
You add the review step; LangGraph can pause on state.
When to pick which
An agent inside your product, with every prompt and branch yours.
CriteriaWhat it isOpen sourceWhat you ownRuns the agents or only defines themWhere memory and state liveModel choiceHuman review of changesWhen to pick which
KortixKortix CompanyOSYesThe workspace configuration and agent instructions.Runs them: each session on its own cloud computer.Repo, Drive, /workspace and the session record.Any model with your own keys, or a ChatGPT subscription.Work reaches main through a change request a person reviews.Company work that must be owned, reviewed, and run end to end.
LangChainA library that composes an agent harness from model, tools, prompt, middleware.YesYour application code and the harness you compose inside it.Defines them; your application runs the loop.In your app; LangGraph persistence sits under it and LangSmith holds traces.Any model; one interface across OpenAI, Anthropic, Google.You add the review step; LangGraph can pause on state.An agent inside your product, with every prompt and branch yours.

An agent starts inside your application

Exhibitagents.py
from langchain.agents import create_agent
Source: https://docs.langchain.com/oss/python/langchain/agents.md

create_agent builds an application-level harness; the deployment remains a separate choice.

What LangChain gives a team

LangChain is a library for building an agent harness. Its own docs describe an agent as a model plus a harness, and give you create_agent to compose one from a model, a set of tools, a prompt, and middleware that shapes behavior. LangChain supports OpenAI, Anthropic, Google, and other providers behind one interface, so a team can switch a model without rewriting every call site. The agent machinery is built on LangGraph, which adds durable execution, persistence, and human-in-the-loop support. The application, the prompts, and the control flow around the loop stay with your engineers.

The layer a platform adds

Keep the application boundary explicit. Model calls and middleware belong in the library evaluation; the team handoff needs its own acceptance test.

When to pick which

LangChain’s agent API exposes create_agent with model, tools and system-prompt parameters. Middleware shapes behavior around the loop. Choose that boundary for an agent inside your application, and keep the application’s tests around those calls. For internal company work, test the session-to-review handoff as a separate requirement.

Kortix and LangChain, answered

What is the difference between LangChain and Kortix?

They sit at different layers. LangChain is a library that composes one agent harness inside your application. Kortix CompanyOS is open source. Read the code and check the operating model against your task.

Is LangChain open source?

Yes. LangChain is open source. It provides create_agent, a configurable harness you compose from a model, tools, and middleware, and it supports OpenAI, Anthropic, Google, and more.

Does Kortix replace LangChain?

They are different layers, so they are not competing for the same job. LangChain defines an agent inside your application. Kortix runs agents and owns the state they work from, with work landing through a change request a person reviews.

Which should a team choose?

Choose LangChain when the agent lives inside your product and your engineers want full control of the loop. Choose Kortix when the agent is part of how the company works and the system has to be owned, reviewed, and run end to end.

Run your agents on a platform you own

Start with a task your team can check.