Skip to content

Repository files navigation

Your own AI assistant. Private, self-hosted, no hype required.


What is this?

OpenPalm is two things: a harness and a stack.

The harness runs on your machine — either as a CLI binary or an Electron desktop app. It manages a single directory (~/.openpalm/) that contains plain files you can read and edit:

  • Docker Compose files and addon overlays
  • Environment files for non-secret stack config and AKM user variables
  • Private principal, service, and provider credential files
  • OpenCode configuration (model, providers, persona)
  • AKM configuration (memory, embeddings, knowledge stash)
  • Voice and portal configuration

The harness job is unglamorous: download Docker images, place the right content in the right files, and start docker compose up. That's the entire control plane. If you prefer, you can skip the harness entirely and manage those files by hand.

The stack is what the harness runs. At its core:

  • An OpenCode assistant in Docker — your AI, talking to whatever model you point it at, with persistent memory and skills via AKM
  • A Guardian — the profile-gated front door for portals and Guardian clients, enforcing principal authentication, ownership checks, rate limits, and default-on fail-closed content validation
  • Optional addons — portal adapters such as Discord and Slack, services such as Voice, or anything you add through Compose

Official clients are the Electron desktop app and the OpenCode web interface served by the assistant. The Assistant and host-served OpenPalm UIs have direct paths to OpenCode; portals and Guardian direct/API clients reach it through Guardian.


OpenPalm started as a hobby project — a weekend experiment to see if a useful AI assistant could be built on boring, standard tools. Turns out it can. It's now a daily driver, and it keeps getting better.

No proprietary orchestration layer, no magic runtime, no lock-in. Just containers, env files, and compose overlays. If you can run docker compose up, you can run OpenPalm.

Where things stand

Use the latest published release. See the changelog for current work and release-specific upgrade notes.

What you get

  • An AI assistant that's yours — Runs on OpenCode, talks to any OpenAI-compatible model (local or remote), and remembers things between sessions.
  • Portals — Talk to your assistant through a web chat, an API, Discord, Slack, or build your own adapter.
  • Security by default — Portal and Guardian ingress traffic passes through principal authentication, ownership checks, and rate limits. Direct Assistant access is loopback-only by default, and the Assistant has no Docker socket.
  • Plain control plane — Stack and control-plane state use Compose, env, and configuration files. Service runtime data, including SQLite databases, stays under ~/.openpalm/data/.
  • LAN-first — Nothing is exposed to the internet unless you explicitly choose to expose it.

Get started

1. Install Docker (with Compose V2) — OpenPalm runs your assistant in Docker containers.

Platform Get Docker
Mac Docker Desktop or OrbStack
Windows Docker Desktop
Linux Docker Engine (curl -fsSL https://get.docker.com | sh)

2. Download the OpenPalm desktop app — Recommended for most users.

Platform Download Run
Mac (Apple Silicon) OpenPalm-arm64-mac.zip Unzip → drag OpenPalm.app to Applications
Mac (Intel) OpenPalm-x64-mac.zip Unzip → drag OpenPalm.app to Applications
Windows OpenPalm-win.zip Unzip → run OpenPalm.exe (portable, no install)
Linux OpenPalm.AppImage chmod +x → run

Open the app, follow the setup wizard (it'll confirm Docker is running, ask which AI provider to use, and start the stack), and land directly on the chat page. Done.

First launch on macOS/Windows: builds are not code-signed, so there's a one-time security prompt. On macOS, right-click OpenPalm.app → Open the first time (or xattr -dr com.apple.quarantine OpenPalm.app). On Windows, click More info → Run anyway on the SmartScreen prompt. Subsequent launches are unrestricted.

Advanced / headless install (CLI)

For servers or power users who prefer a CLI:

curl -fsSL https://raw.githubusercontent.com/itlackey/openpalm/main/scripts/setup.sh | bash

This downloads the CLI binary for your platform, seeds ~/.openpalm/, opens the same wizard in your browser, and starts the stack. See the setup guide for the full headless flow and the bare-metal docker compose path.

Make it yours

  • Swap models — Point it at OpenAI, Anthropic, Groq, Ollama, LMStudio, or anything OpenAI-compatible.
  • Add portals — Enable Discord, Slack, API, or web chat by enabling the relevant addon in your stack.
  • Extend the assistant — Drop in OpenCode plugins, custom tools, or let the assistant find what they need with built-in AKM support.
  • Schedule automations — Add YAML files to run recurring tasks on a cron schedule.
  • Protect your secrets — The shared control-plane logger redacts structured values under recognized sensitive key names; this is not a blanket guarantee for every service log. openpalm scan inventories discovered sensitive keys and secret files as set or empty without printing their values.

How it works

flowchart LR
  Admin[Electron or openpalm admin] -->|host control plane| Compose[Docker Compose]
  Compose --> Assistant[Assistant and OpenCode]
  UI[Assistant or host-served UI] -->|same-origin /oc| Assistant
  Direct[Direct OpenCode client] -->|optional OpenCode Basic auth| Assistant
  Portals[Discord and Slack portals] -->|principal Basic auth /oc| Guardian
  Clients[Guardian direct, API, or MCP clients] -->|issued credentials| Guardian
  Guardian -->|native OpenCode upstream| Assistant
  Assistant --> AKM[AKM knowledge and BusyBox cron]
Loading

Guardian mediates portal and Guardian-facing protocols. It is not inserted into the supported direct Assistant or UI paths.

For the full walkthrough, see How It Works. For security invariants and architectural rules, see Core Principles.

Documentation

Guide What's inside
Setup Guide Install, update, and troubleshoot
Upgrade 0.10.x → 0.11.0 Upgrade an existing install: file/env/port migration
How It Works Architecture and data flow
Managing OpenPalm Config, addons, secrets, automations
Core Principles Security invariants and design rules
Community Portals Build your own guardian-facing portal adapter
Full docs index Everything else

Contributing

OpenPalm is open source under MPL-2.0. Contributions are welcome — just know that things move fast right now and the architecture is still settling. Check out the docs index to get oriented, and don't hesitate to open an issue if something breaks or doesn't make sense.

About

Personal AI assistant(s) powered by OpenCode

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages