CHASM Assistants
CHASM is Chaser’s assistant runtime layer. It lets you create managed AI assistants that can execute code, browse the web, and interact with users through external messaging channels — all backed by Chaser’s session infrastructure.
How it works
A CHASM assistant is a managed entity with:
- A configuration that defines its model, tools, memory policy, and alert thresholds
- Channel bindings that connect it to external messaging platforms (Telegram, Discord)
- Credentials stored securely in Chaser’s vault for API keys and tokens the assistant needs
- Runtime state that persists across interactions
- A dedicated workspace for durable file storage and code execution
Assistants use the same terminal and browser MCP tools as any other Chaser integration. The difference is that Chaser handles authentication on behalf of signed-in product users, so the assistant does not need a separate API key.
Assistant lifecycle
Channel bindings
Connect an assistant to external messaging platforms so it can receive and respond to messages.
Supported channel types: Telegram and Discord.
Credentials vault
Store secrets the assistant needs (API keys, tokens) securely:
Credentials are encrypted at rest and only accessible to the assistant runtime.
Config change requests
For controlled updates to assistant configuration, use the approval-gated workflow:
Runtime state
Assistants maintain persistent runtime state that survives across interactions:
Usage tracking
Monitor assistant resource consumption:
Usage events track token consumption, tool invocations, and session usage. Alert policies in the assistant config can trigger webhooks when thresholds are exceeded.
Codex login for CHASM
CHASM supports OpenAI Codex authentication for assistants that need access to OpenAI services. The login flow uses a localhost callback URL pattern:
- Call
GET /auth/codex/login-urlto get the authorization URL and PKCE verifier - Open the URL in a browser and authenticate with OpenAI
- OpenAI redirects to a localhost callback URL
- Copy the full localhost redirect URL and submit it to complete the authentication
This localhost callback approach is intentional — OpenAI’s Codex OAuth does not support remote callback URLs, so the redirect must go to localhost and be manually submitted back to Chaser.
