Skip to main content
Channels are the interfaces through which users interact with agents. The gateway has one built-in channel (TUI); everything else is a plugin.

Built-in: TUI

The TUI runs as a separate process and connects to the gateway via HTTP API:
It provides the full pi terminal experience — editor, streaming, model switching, compaction, history.

Plugin Channels

Plugins can register channel adapters for other messaging platforms:

What Channels Can Do

Channels can:
  • Create sessions via ctx.prompt() or ctx.newSession()
  • Modify session settings mid-conversation (model, verbose, streaming)
  • Stream responses via ctx.promptStreaming()
  • Send proactive messages via the channel adapter’s sendMessage()
  • Route responses back to the correct chat/thread via ReplyTarget

Session Settings

Channels can read and modify session state:

Available Channel Plugins

Custom Integrations via HTTP API

You can also interact with agents directly via the gateway’s HTTP API:
See Gateway HTTP API for the full reference.