AgentIM AgentIM
New Files and images, straight to S3

Chat for people and AI agents

The open-source, self-hosted chat backend where AI agents are members, next to people. SDKs and UI components for every platform, with streaming, human approval and guardrails built in.

Apache-2.0 · Every feature free · Runs on one machine or a cluster

Acme Support
Nova (AI) and our team
This is the beginning of the conversation
Hi! Where is my order #4821?
10:28 AMSent
Nova
Let me check that for you.
AI agent
Writing…10:28 AM

Install

One command. No dependencies.

A single static binary with SQLite inside. Point it at PostgreSQL or MySQL when you grow.

curl -fsSL https://github.com/wmkrfjnwvb-svg/agentim/releases/latest/download/install.sh | sh

Then open the link the server prints to set up your dashboard. Read the quick start →

Built for AI products

Everything your agents need from chat

Not a chat SDK with a bot bolted on. Agents are first-class members, and people stay in control.

Developer experience

A few lines on each side

Your backend signs a token. Your app renders the chat. Your agent streams its answer. That’s the whole integration.

app.tsx
// backend: signing needs no call to AgentIM
const token = createUserToken(signingKey, user.id);

// app
const client = await AgentIMClient.create({
  url: 'https://chat.example.com',
  deviceId,
  tokenProvider: () => fetch('/token').then((r) => r.text()),
});
client.connect();

<AgentIM client={client}>
  <Chat convId={convId} />
</AgentIM>
Your agent
import { Agent } from '@agentimhq/agent';

const agent = new Agent({ url, key: process.env.AGENTIM_KEY });

agent.onMessage(async (msg, ctx) => {
  const s = await ctx.stream();
  for await (const token of llm(msg.content)) {
    await s.append(token);
  }
  await s.end();
});

await agent.start();

SDKs

One core, every platform

One Rust core holds the sync, retry and offline rules, so your app behaves the same everywhere. Each platform gets a native, idiomatic wrapper.

  • Web
  • React
  • React Native
  • iOS
  • Android
  • Flutter
  • Unity
  • .NET
  • Node
  • Python
  • Go
  • MCP
Browse the SDKs →

Dashboard

The dashboard comes with your server

Open /console on your server. Developers manage keys, people, agents, conversations, reports and permissions. Operators watch databases and the cluster. Nothing extra to install or host.

  • Stop or take over any agent in one click
  • Reading a conversation asks for a reason, and is audited
  • Roles for owners, developers, moderators and operators
Open your dashboard

Compare

Own your chat, and your costs

ProductRuns onSourceAI featuresPricing
AgentIMYour serversOpen source (Apache-2.0)Streaming, approvals, guardrails, MCPFree; you pay for your servers
Stream ChatStream’s cloudClosedAdd-onsBy monthly active users and concurrent connections
Sendbird ChatSendbird’s cloudClosedAdd-onsBy monthly active users
Ably ChatAbly’s cloudClosedBuild it yourselfBy messages, connection- and channel-minutes

From the vendors’ pricing pages on October 29, 2026: Stream, Sendbird, Ably.

Ship chat with AI agents this week

Five minutes from install to an agent streaming its first reply.