TL;DR: Prism is an open-source (Apache 2.0) agent runtime that lives in Slack, has memory and works on a schedule. You use Prism with a Qwen model on your own GPU and get an always-on Slack agent. Setup takes five minutes.
Why run it locally
Prism is a full agent: it keeps long-term memory, runs shell commands in a workspace, runs a heartbeat check every few hours, and runs scheduled tasks you ask for.
With a local model, the prompts, the tool output and the agent's memory stay on your machine. The runtime keeps its state in one SQLite file. Slack is still Slack: your messages go through Slack's servers like any other message, but nothing goes to an LLM vendor.
How the pieces fit
Prism runs as one process.
What you need
- Enough memory for a 64k context. Agent prompts are long: a system prompt, a tools block and tool output. The recommended model with a 64k context takes 22 GB, so plan for a 24 GB GPU or a Mac with 32 GB of unified memory. See the model table below.
- Ollama, a version that serves the Anthropic-compatible
/v1/messagesendpoint. - A Slack workspace where you can create an app.
- Optional: Docker or Podman. When a container engine is running, Prism runs the agent's shell commands in a container instead of on your host.
Step 1: Start Ollama with a big enough context
Ollama picks a default context length from your VRAM: 4k below 24 GB, 32k from 24 to 48 GB, 256k at 48 GB and above (Ollama docs). 4k is far too small for an agent. Set the context explicitly:
OLLAMA_CONTEXT_LENGTH=65536 ollama serve In the desktop app, use the context slider in Settings instead. Then pull a model that makes reliable tool calls:
ollama pull qwen3:30b-a3b-instruct-2507-q4_K_M Check that the model is fully on the GPU and has the context you asked for:
ollama run qwen3:30b-a3b-instruct-2507-q4_K_M "hi" ollama ps # PROCESSOR should read 100% GPU, CONTEXT should read 65536 If PROCESSOR shows a CPU share, the model and its KV cache do not fit. Use a smaller quant, a smaller model or a smaller context.
Step 2: Create the Slack app
Prism connects to Slack over Socket Mode: it opens an outbound WebSocket to Slack. You need no public URL.
Go to api.slack.com/apps, choose Create New App → From a manifest, and paste this:
display_information: name: Prism features: bot_user: display_name: Prism always_online: true oauth_config: scopes: bot: - app_mentions:read - chat:write - im:history - im:read - channels:history - channels:read - groups:history - groups:read - files:read - files:write - users:read - reactions:write - assistant:write settings: event_subscriptions: bot_events: - app_mention - message.im - message.channels - message.groups - member_joined_channel - member_left_channel socket_mode_enabled: true Then:
- Install to Workspace and copy the Bot User OAuth Token (
xoxb-…). - Under Basic Information → App-Level Tokens, create a token with the
connections:writescope and copy it (xapp-…). - Optional: turn on Agents & AI Apps in the app settings. Prism then shows an "is thinking…" status.
Step 3: Install Prism and point it at Ollama
Two native binaries will be installed on your machine, prism-server (the runtime) and prism (a terminal UI), and registers the runtime as a background service:
curl -fsSL https://raw.githubusercontent.com/Mirantis/prism/main/install.sh | bash On Windows, use irm https://raw.githubusercontent.com/Mirantis/prism/main/install.ps1 | iex. Then edit ~/.prism/.env:
# The model: Ollama's Anthropic-compatible endpoint LLM_PROVIDER=llama-cpp LLAMA_CPP_BASE_URL=http://127.0.0.1:11434/v1 LLAMA_CPP_MODEL_ID=qwen3:30b-a3b-instruct-2507-q4_K_M CONTEXT_WINDOW_TOKENS=65536 # Slack SLACK_BOT_TOKEN=xoxb-... SLACK_APP_TOKEN=xapp-... The provider is called llama-cpp because it was written for llama.cpp's llama-server. It speaks the Anthropic Messages API and Ollama serves the same API. CONTEXT_WINDOW_TOKENS must match OLLAMA_CONTEXT_LENGTH: Prism uses it to decide when to compact a long conversation, and it cannot read the value from Ollama.
Restart the service to load the file:
# macOS launchctl kickstart -k "gui/$(id -u)/com.prism.server" # Linux systemctl --user restart prism-server.service Check it with curl http://localhost:3003/health. The log is in ~/.prism/server.log on macOS.
Before you add Slack, test the model connection. Open the web UI at http://localhost:3003 and ask the agent to run ollama ps. A working setup answers with a tool result, as below.
Prefer Docker? Use image ghcr.io/mirantis/prism:latest. Use http://host.docker.internal:11434/v1 as the base URL.
Step 4: Link your Slack account and use it
Open the web UI at http://localhost:3003, go to Channels, and click Link Account. You get a six-character code - DM the code to your bot in Slack. To use the agent in a team channel instead, click Add channel, invite the bot, and @mention it with that code.
Now try it in the DM. The agent calls its shell tools, writes the file and replies in the thread. Some things to try next:
- Memory. "Remember that our staging cluster is called
stg-eu-1." Ask about it in a new thread next week. - A scheduled task. "Every weekday at 9am, check
df -hand tell me if any disk is above 85%." The task posts to the channel where you created it. - A heartbeat. The agent runs the checks in its Heartbeat document every 8 hours by default and posts only when it finds something new. Ask it: "Add a heartbeat check: tell me when the nightly backup file in ~/backups is older than 26 hours."
Choosing a model
The model has to do one thing well: emit correct tool calls, many in a row. Chat quality matters less. On Ollama, Qwen3 30B-A3B Instruct passed that test. Qwen3-Coder 30B, the obvious pick for an agent, did not.
With a 64k context, the recommended model takes 22 GB, and ollama ps shows what really fits. To test another model, ask it to run ollama ps in a fresh chat. If the reply contains <function= or <tool_call> text instead of a tool result, that model's tool calls do not work through Ollama.
Two settings help on small hardware:
- A small model for the gates. Prism makes short classification calls, for example to decide whether a Slack thread message needs an answer. Set
LLAMA_CPP_CLASSIFICATION_MODEL_ID=qwen3:4bto run those on a small model, and setOLLAMA_MAX_LOADED_MODELS=2so that Ollama keeps both models loaded. - Keep the model loaded. Set
OLLAMA_KEEP_ALIVE=-1. Otherwise a 6am scheduled task waits for the model to load from disk.
Trade-offs
A local 30B model is not a frontier model, and this setup gives up some things:
- Memory search by meaning is off. Prism has no local embedding provider yet. The agent still saves memory entries and loads the recent ones into a new conversation, but a search for an older entry by meaning doesn't work.
- More tool-call mistakes. On long shell tasks a small model loses track more often than a hosted model. Give it short, concrete tasks, and use the Coder model.
- A slow first turn. The first turn processes Prism's 12k-token system prompt and tools block cold, which took 41 s on an M3 Pro. Ollama then reuses its cache for the matching prefix, so later model calls start in about a second.
- Some features need a cloud service. Voice chat and voice meetings need an OpenAI Realtime key.
- No images, because this Qwen3 model reads text only.
Wrap-up
You now have a Slack agent that has a memory, runs commands and does work on a schedule, on your own inference. To improve the agent you can add Agent Skills or a plugin with an MCP server.
- Repository: github.com/Mirantis/prism
- Configuration reference: docs/configuration.md
- Ollama's Anthropic API: docs.ollama.com/api/anthropic-compatibility
Disclosure: I work at Mirantis and work on Prism.




