channelstack is a new tool that lets developers test app integrations on their own machine. It recreates Slack, GitHub, Linear, Notion, Resend, Gmail and Discord locally, and it fakes OpenAI’s API for the model behind an agent.
A test scripts the human users and the model’s replies, then lets the app run its normal code and checks what a user would see on screen. Nothing in the app has to be rewritten.
What it fakes
Every fake supports the users, events and API calls an app depends on. Webhooks are signed, payloads match the real shapes and ids look genuine.
- Slack covers direct messages, mentions, threads, buttons and the agent view, with streamed progress shown as users see it
- GitHub supports app installations, issues and comments, with signed deliveries carrying real GUIDs and a way to resend them for dedupe tests
- Linear handles issues, comments and whole agent sessions, from delegation through prompts and activity to a Stop command
- Notion offers pages, databases and comments, and fires a webhook when a person mentions the integration
- Resend lets simulated people email an agent that reads the message and replies in the same thread, using Svix-signed webhooks and Resend’s test addresses
- Gmail provides a watched mailbox, Pub/Sub pushes whose tokens pass verifyIdToken, readable history and threaded replies
- Discord gives a bot a guild to listen to over the Gateway, plus threads, DMs, slash commands and buttons delivered as Ed25519-signed interactions that must be answered inside 3 seconds
Stripe is listed as coming next.
Why local fakes beat live workspaces
Testing a bot against a real Slack workspace or a real GitHub repository is slow and hard to repeat. Messages pile up, rate limits interfere, and a test can’t easily replay the exact event that broke production. A local fake gives each test a clean state and a known cast of users.
It also lets a test do things that are awkward to stage with real services, like delivering the same event twice or making the model answer slowly. Those are the cases where agents tend to misbehave.
Scripting the model too
The OpenAI fake is scripted per test. It can return text, streams, tool calls, errors, a slow first token, images, audio and built-in tools. If the app makes a call that no script answers, the test fails.
That allows checks on the model side. A test can confirm the agent was offered a tool, that it sent the tool result back, how many times the model answered, and that no secrets were sent.
Tests that read like the conversation
Tests are written in a vitest style. A test creates a user, sends a message such as asking an agent to ship an issue to staging, and waits for the agent’s reply. It can then click an Approve button and check that the thread says the deploy happened exactly once.
Redelivery is built in. A GitHub test can send the same comment event again with the same GUID and confirm the agent doesn’t start a second run. A Resend test does the same with a repeated svix-id. Duplicate webhooks cause real bugs in production, and these checks reproduce them on demand.
A Linear test can delegate an issue to an agent, then press Stop and verify the session ends in a complete state.
Pointing an app at the fakes
The command channelstack env points an app’s own SDKs at hosts such as slack.localhost and github.localhost, and its model at openai.localhost. Apps with hard-coded hosts use proxy mode instead. You set HTTPS_PROXY and trust a certificate authority that only that app sees.
Why the gaps matter
Failures usually hide between systems: a webhook signed incorrectly, a payload that changed last month, or a leftover progress message no one asserted on. To catch them, every response and webhook is validated against the providers’ own schemas, drawn from OpenAPI descriptions, GraphQL introspection and recorded traffic. If a platform changes, the build fails loudly.
Where it fits for agent teams
Teams building agents on top of chat, issue trackers and email now have a way to run full conversations in a test suite, with no live workspace and no real model bills. How closely the fakes track each provider over time depends on that schema checking, and Stripe support is the next addition to watch.
Source: channelstack