Skip to content
zadstackPublic

About

Self-hosted CMS in Go and SQLite: bilingual admin, page builder, canvases, REST and MCP. AGPL-3.0.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

612 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoRun

CI Latest release License: AGPL v3

GoRun: your content and infrastructure, with one Go binary and SQLite connecting content, themes and agents

A self-hosted CMS for your team and AI agents. One Go binary, SQLite, and an English and Arabic admin with RTL.

Write and publish content, shape your site with themes, and connect agents over MCP. Scoped keys, human approval for sensitive actions and an audit trail keep access explicit. REST serves other integrations; external providers are optional.

Quick start · Why GoRun · Documentation · Releases · العربية

Website guides · Security · Contribute

Application preview

Actual application interface

Tour of actual application screens

Content list and post editor, using the existing Atlas Studio demonstration screenshots. This GIF is a slideshow of actual UI captures, not a new live-session recording.

Media provenance

Run it now

You want Use Needs
To try it on this computer One block macOS or Linux
To try it in Docker One command Docker
A real site on your server Docker Compose Docker Compose
A real site on Coolify Paste one file Coolify

On your computer

For a local trial on macOS or Linux, copy and paste this whole block. No Go, Docker, database setup or administrator privileges required.

(
  set -eu
  installer="$(mktemp)"
  trap 'rm -f "$installer"' EXIT
  curl -fsSL https://raw.githubusercontent.com/zadstack/gorun/main/install.sh -o "$installer"
  sh "$installer"
) &&
export PATH="$HOME/.local/bin:$PATH" &&
gorun start --data "$HOME/.local/share/gorun/site"

The installer detects Intel or ARM, downloads the latest release, verifies its SHA-256 checksum, and installs GoRun for your user. The block configures this terminal automatically, and the installer adds the default executable directory to your shell startup file for future terminals. No manual PATH setup. Your browser opens, SQLite and the default theme are prepared, and your first admin password appears once in the terminal. Save it. On first sign-in, choose your own password, email, site name and language. Restarting preserves your site and accounts.

The quick start requires GoRun 0.4.0 or newer. The installer refuses older releases without changing an existing installation.

The executable lives at ~/.local/bin/gorun; your local site lives at ~/.local/share/gorun/site. Stop the server with Ctrl+C. Repeating the block uses the same site. LAN access is a public, read-only preview; administration stays on localhost. Use --local-only when starting manually to disable LAN access. Local setup and recovery.

If the local site has a problem, run gorun doctor --data "$HOME/.local/share/gorun/site". Add --support to include version and platform details in a shareable report. Troubleshooting.

In Docker

docker run -d --name gorun -p 8080:8080 -v gorun-data:/data -e GORUN_TRIAL=1 ghcr.io/zadstack/gorun:latest && sleep 3 && docker logs gorun

Open http://localhost:8080/admin, or http://YOUR_SERVER_IP:8080/admin on a server, and sign in as admin with the password printed in the output. Trial mode is not for production: the admin is reachable over plain HTTP on every published address, so use a trusted network. Requires GoRun 0.18.4 or newer. Remove it with docker rm -f gorun && docker volume rm gorun-data.

On a server with Docker

Replace YOUR_SERVER_IP, then paste the whole block. It writes .env once and keeps your secret key if you run it again, so back that file up.

SITE_URL=http://YOUR_SERVER_IP:8080
mkdir -p gorun && cd gorun &&
curl -fsSLO https://raw.githubusercontent.com/zadstack/gorun/main/deploy/compose.server.yml &&
if [ ! -f .env ]; then (umask 077; printf 'GORUN_BASE_URL=%s\nGORUN_SECRET_KEY=%s\nGORUN_SETUP_TOKEN=%s\n' "$SITE_URL" "$(openssl rand -base64 32)" "$(openssl rand -hex 24)" > .env); fi &&
docker compose -f compose.server.yml up -d &&
grep GORUN_SETUP_TOKEN .env

Open /admin/setup on your site and enter the printed token. For HTTPS, put a reverse proxy in front and follow the HTTPS checklist.

On Coolify

In Coolify choose + New → Docker Compose Empty, paste deploy/coolify-compose.yml, then Save and Deploy. Coolify generates the secrets and keeps them across deployments. All steps.

For the version-pinned Coolify template, paste gorun.yaml instead. It uses image 0.19.0, generates the secret key and setup token, and persists site data in a volume. Set your HTTPS domain with port 8080, verify the proxy network using the guide above, then deploy and open /admin/setup. Enter SERVICE_HEX_32_GORUNSETUP from Coolify's environment variables to create the first administrator.

The template bundle includes the logo and matching service documentation for an upstream contribution. It is available for manual installation; it is not yet listed in Coolify's official library.

Guided server setup

For a domain with HTTPS and a persistent service, use the guided Linux server setup. It asks for your domain and installation directory, verifies DNS, and reports the final URL and data path after acceptance checks. It requires Linux root access, Python 3 and Docker Compose; it uses verified public release downloads without a GHCR login. For an existing proxy or Coolify deployment, follow the Docker / Coolify guide. The local preview is intended for development.

Start with your AI assistant

On your computer or a server, copy this into an assistant with terminal access to the target machine:

Set up GoRun from https://github.com/zadstack/gorun.
Read the official README and assistant setup guide first.
Ask whether this is a local trial or a public server deployment.
Check the operating system, architecture, and any existing site before changing anything.
Preserve existing data, users, themes, settings, and credentials.
For a local trial, use the official release installer with checksum verification.
For a server, ask for the domain and installation directory; verify DNS points to it.
Follow the supported production setup, with HTTPS, persistent data, and automatic restart.
Do not replace an existing site or proxy configuration without explicit approval.
Verify the public page and admin sign-in page at the final URL before reporting success.
Keep generated passwords, setup tokens, and keys out of chat, screenshots, and shared logs.
Let me complete first-login setup securely in the browser.
Report the final URL, installation and data paths, and stop/restart/update instructions.
If you lack terminal access or a prerequisite, explain exactly what is needed.

The instructions are tool-neutral. A chat-only assistant can explain the steps but cannot install software on your computer. Assistant setup guide.

Cloudflare Edge — in development

GoRun Edge is a separate, experimental Workers-based edition with its own D1/R2 storage. The button below installs it on your Cloudflare account automatically: Cloudflare clones edge/, creates the D1 database and private R2 bucket, applies the Edge migrations, loads the synthetic preview, and deploys the Worker after you confirm the setup page. Leave SITE_ID as demo. The published address is the site: open /admin on that same origin and manage drafts, review and publication with the owner key. This does not install the Full GoRun binary. Both public reading and optional owner administration have passed actual Cloudflare HTTPS acceptance with isolated synthetic data; temporary test access was revoked. Validation record. Create the primary manager key in the Edge admin and paste it into GoRun at Settings → Edge. GoRun stores the key encrypted and checks the Edge identity endpoint. That check does not edit Edge content. Edge has no MCP server or agent skills yet. There is no measured benchmark result.

Deploy to Cloudflare

Why GoRun?

  • Your content and infrastructure. A Go executable and SQLite, hosted by you. No Node.js or PHP at runtime.
  • Arabic and English from the start. A bilingual dashboard with native RTL support and responsive site themes.
  • A complete editorial workflow. Structured content, drafts, reviews, scheduled publishing, revision history and explicit staff permissions.
  • Agents with boundaries. MCP tools, scoped agent keys, human approvals for sensitive changes and an audit trail. Separate REST keys serve other integrations. Canvas boards stay private; agents and REST keys read only what they are granted.
  • See what an agent built, then refine it where it stands. An agent plans a layout change and shows the diff before it writes; a pending publish shows exactly what it would change on the page. Staff edit the texts of a built page on the live site from the admin bar, and a client's Studio account can change texts and images there and nothing else.
  • Your site stays yours. gorun export writes the whole site, content, layouts, identity, media and rendered pages, to a folder you can keep in Git.

How GoRun works

How GoRun fits together: visitors, staff, integrations, AI agents and providers reach one gorun process through the public site, the admin, REST, MCP and webhooks. Modules boot in a fixed order on shared kernel services over one SQLite database.

  • One process, one database. The gorun binary serves the public site, the admin, REST and MCP. Content, users, settings, the audit log and the job queue live in one SQLite database inside your data directory.
  • Features are modules. Each module boots in a fixed order and may only use modules that boot before it. Optional modules, such as commerce or the WordPress importer, switch on or off in Operations → Modules at the next start. Their data stays.
  • Slow work runs in the background. Provider checks, heavy reads and webhook deliveries run as durable jobs with retries. Pages show the last saved result and its age instead of waiting.
  • Outside services are optional. AI providers, Stripe, SMTP mail and Cloudflare Edge connect only when you configure them.

Architecture reference · Modules · Operational mail

A workspace that stays organized

Up to six primary sections keep related tools together, with contextual page tabs above the screen you are using. You see the tools your permissions allow; Store adds an optional seventh section when permitted commerce tools are available. Colored categories keep their text labels and selected borders. Personal visibility, navigation order and dashboard pins stay yours; pinned tools remain within reach under Quick access in the main sidebar.

GoRun content workspace with grouped sections, contextual page tabs and the agents rail
Grouped sections and page tabs
The same workspace in Arabic, mirrored right to left
The same workspace in Arabic, right to left

The screenshots use an isolated demo site with fictional content. The layout mirrors for Arabic and stays usable on mobile. Arabic mobile menu · Workspace guide.

The dashboard keeps recent work, quick actions and the site setup checklist on one screen. Each standalone shortcut has a single place: primary navigation, the page tabs, your pins or the tools rail. Pinning a tool updates the sidebar and shortcuts in place, without reloading the page. The orchestrator card at the top of the sidebar shows whether a run is live and how many approvals wait for you. Dashboard.

Press Ctrl/⌘ K for the command palette (pages, permitted actions and content, Arabic-aware) and ? for keyboard shortcuts. The bell lists approvals, items waiting for review, comments and failed jobs you can act on. My account holds your profile, password, signed-in devices and two-factor sign-in: an authenticator app (scan the QR code) or a passkey, with recovery codes; administrators can require it per role. Notifications can also reach you by email (immediately or as a daily digest) or Telegram, per category. Sign-in security · Notifications

Measured, with context

In a controlled minimal article test at 50 requests/s, median run p95 latency was 2.66 ms for GoRun, 16.85 ms for WordPress + MariaDB, and 0.66 ms for Astro static + Nginx. Sampled peak working set was 114.54 MiB, 203.78 MiB, and 4.09 MiB, respectively.

Three repetitions on one disposable host; two logical server CPUs and a 2 GiB budget per deployment; 100 identical synthetic articles; no TLS, CDN or full-page cache. Astro is a static-delivery reference, not a full CMS. The experimental Edge prototype has no measured result. These numbers describe this workload, not general product superiority. Full results, limitations, raw evidence and reproducible notebook.

Write, review and publish

Manage posts, pages, custom content types, fields, media and navigation in one place. Give editors, authors and contributors the permissions they need, hand a client the Studio editor role to change texts in place and nothing else, and review changes before publishing.

Arabic content list with published posts and drafts in Arabic and English
Content list in Arabic
Post editor with body, excerpt, featured image and publishing panel
Editor with scheduling and revisions

The editor autosaves to a private copy and never overwrites a newer save. Compare any revision with the current version before restoring it, and share an expiring, revocable preview link with reviewers who have no account. Select items in the content list to publish, schedule, reassign or tag them together; each item keeps its own permission checks. Export content as JSON or CSV from the list, the REST API or gorun content export, and translate categories and tags like content. Editing safety · Content export

Editorial workflow · WordPress migration

Build a site you can make your own

Themes vs patterns

Themes set visual identity (type, color, spacing, chrome). Patterns set page layouts. They are independent: pick a theme under Appearance → Themes, a layout under Appearance → Patterns. Template resolution is draft → override → pattern → theme. Clearing a pattern restores the theme’s own templates.

Theme Slug Role
Classic default Calm reading
Modern business Sharp chrome
Minimal portfolio Quiet chrome
Serif magazine Type-led
Docs docs Reference chrome
Pattern Slug Layout
Editorial editorial Magazine masthead, lead, story grid
Company company Business hero, offerings, updates
Showcase showcase Portfolio intro, project mosaic
Guidebook guidebook Docs search hero, section cards

Activating a theme does not create starter pages; use the site builder for that. Patterns live under patterns/ (not HTTP extensions). Themes · Pattern plugins · Default-theme demo · Arabic article on mobile.

Website → Design → Site design brings Build site and Visual identity into one workspace. Prepare pages as drafts, review activation separately, and preview colors and typography locally before explicitly saving identity. Existing site content and theme settings remain yours. Site design guide.

Once a page is published from the section builder, signed-in staff see Edit in place on the admin bar: click a text on the live page, type, and the change saves to the same draft the editor uses; Publish is the editor's publish. The identity page's Variables panel shows every identity token as the light and the dark scheme render it, the role names that follow it, and the WCAG contrast of each pair, updated as you type. The section editor builds its forms from one section schema that the validator and the get_section_schema tool share, so a new section kind is one row plus a template. Editing in place and the Variables panel.

Site design workspace with saved-site summary, visual identity controls and a local sample
Visual identity, previewed before saving
Build-site step with starter designs prepared as drafts
Build site: starters prepared as drafts
Page builder with an Arabic interface and live preview
Page builder in Arabic with live preview
Public home page of the default theme with fictional Atlas Studio content
The public site in the default theme

Arabic mobile identity.

Site builder · Theme development · Theme reference

Work with agents, keep the decisions

Connect an MCP client with an AI agent key. Its scopes are bounded by its owner's permissions; publishing, deleting and changing sensitive settings require human approval by default. REST integration keys are separate from agent keys. Every MCP tool carries annotations (read-only, destructive, idempotent); clients can narrow the list with ?toolsets=content,media or hide writes with ?readonly=1, and gorun://guide explains the workflow. In supporting browsers the admin also registers WebMCP tools, so an in-browser agent can search, read the open page and prepare drafts as you, without an API key. The API keys page gives ready-to-copy configuration for Claude Code, Claude Desktop and other clients and tests the connection; prompts, completions and resource templates help agents get the arguments right.

How an agent action gets approved

How an agent action gets approved: the agent calls an MCP tool, GoRun checks scopes and arguments, a sensitive tool waits for a person under Canvas & agents → Approvals, approval runs it once, denial or 24 hours without a decision runs nothing, and every step is audited.

  1. The agent calls an MCP tool with its AI agent key. GoRun checks that the key's scopes cover the tool and that the arguments match the tool's schema.
  2. A tool that is not sensitive runs at once. A sensitive one, such as publishing, deleting, editing live content or changing settings, waits and the agent receives an approval ID.
  3. A person reviews the exact tool, arguments, key and requester under Canvas & agents → Approvals. A key never decides its own request.
  4. Approval runs the call once, as the requesting key, if that key is still active and its scopes still cover the tool. Denial runs nothing. An undecided request expires after 24 hours.
  5. The agent reads the outcome with check_approval. The audit log records every call and decision, with a hash of the arguments instead of the arguments.

How approvals work

API keys page with agent keys and a REST key, each with explicit scopes
Agent keys with explicit scopes
A pending publishing approval waiting for review, in Arabic
A pending approval waiting for a person

Canvases bring selected content, instructions and agent results into one workspace. Results become private notes for review and do not publish automatically. Agents need canvas.read plus an explicit board grant to list or read boards over MCP; REST keys use the matching canvas endpoints. Configure your provider or agent connection before running it.

Selected content and instructions go to a connected agent; its result becomes a private note for your review, with publication kept separate

With a configured AI provider, review the exact destination and site context before separately confirming a request for canvas suggestions. Suggestions create an unbound starting point; choose its executor and permissions yourself. AI suggestion workflow.

Three canvas suggestions after explicit review and confirmation

Canvas suggestions after review and confirmation

Arabic suggestions on mobile. These documentation examples come from a scripted local HTTP provider, not a live model or evidence of provider availability.

Workflow view draws each card kind with its own shape and shows run state on the board: a running agent has a turning ring, a flowing edge and a count in the toolbar, with a legend for edge states. Lanes arranges the same cards in four columns (inputs, instructions, execution, results) for display only, and a floating Scheduled tasks panel lists the board's schedules. Canvas views and schedules.

Canvas in the Lanes view: inputs, instructions, execution and results in four columns
Lanes: the same cards in four columns
Canvas with a running agent, a flowing edge, the edge legend and the Scheduled tasks panel expanded
Running agent, edge legend and scheduled tasks

Each agent or provider card shows its own ID and selected agent/provider identity, with a signed webhook matched to a saved command and reviewed instructions. Incoming-event rules start disabled and require explicit review and enablement; external agents still need their MCP client running. Configure canvas events.

Your saved actions, within reach

The opposite-side agents rail opens your own canvas cards. Inspect Integrations, Instructions and Defaults, then open the original card to configure or review it. The drawer reads saved configuration; opening it does not run an agent. Configured does not mean online, and an external agent still needs its connected client.

Agent drawer showing a named external campaign assistant, configured status and read-only details
Agents drawer: saved configuration, read only
The agents drawer in Arabic
The same drawer in Arabic

Arabic mobile drawer. Skills and multiple MCP-server resources are not assembled or verified by this drawer.

Agent channels

A channel is a private thread for you and up to eleven of your own agent keys. People post from Operations → Agent channels or the REST API; agents post through three governed MCP tools (list_channels, read_channel_messages, post_channel_message) and only after you add them as members. A hand-off points another member at a message and is advisory only: it runs nothing, publishes nothing and schedules nothing. Every create, message and close is audited without copying the message text. Agent channels.

An agent channel with the owner and two agent keys, where the research agent posts over MCP and hands the outline to the campaign assistant
A channel with two agent keys and advisory hand-offs
An Arabic agent channel, mirrored right to left
An Arabic thread, right to left

An updates brief, from setup to review

1. Make the recipe yours. Open Agent role templates → Build an Updates Researcher recipe. Choose your saved agent, edit the instructions and supply the topic, source excerpts and dates. Inspect its existing model and MCP tool configuration; previewing or saving creates no execution or access grants. Recipe setup.

2. Review the actual request. Save the private canvas, grant the agent the context it needs, then inspect the exact instructions and context in the run review. Confirm the run separately. Managed MCP tool calls retain their individual approvals; an external agent needs its running client.

3. Read the private result. The returned brief becomes an attributed note alongside the original instructions and sources. Compact card types, separate connection points and a full-note reader make the work easier to inspect. Publishing remains a separate decision.

Updates Researcher recipe with editable instructions and supplied evidence for Atlas Studio
1. Make the recipe yours
Run review showing the exact instructions and supplied source before confirmation
2. Review the exact request
Result shown as an attributed private note beside its source and task cards
3. Read the private result
The same result in Arabic
The same result in Arabic

Switch between Workflow, Grid, List and Lanes views without changing the saved content or connections. Arabic mobile story: setup · Review · Result.

These screenshots use fictional Atlas Studio data. The recipe and its cards ship in releases since 0.11.0. A test client sends the reviewed request to a scripted local HTTP provider, then returns its response through the real MCP workflow. This demonstrates setup, consent and private delivery; it does not demonstrate live news retrieval or model quality. This recipe is manually run, with no daily polling.

Agent bundles: add bounded inline skill instructions and reference text to reviewed external-agent or managed-text requests, and attach version-pinned MCP connection profiles with saved discovery status. Manage skills and MCP references. External clients configure their own endpoints, credentials and tools. Named OpenAI-compatible managed text agents can use explicitly selected MCP tools, with owner review of every exact call and a private final note. This mode starts disabled and supports manual runs only.

Start from an inspectable role. Seven compact bilingual examples combine five inline skills each. Inspect the instructions, then prepare an unsaved bundle for an owned agent. A role grants no permissions, chooses no provider and makes no tool call. Role templates.

Agent role catalog with labeled categories and expandable skill instructions
Role templates
The role catalog in Arabic
The same catalog in Arabic

Arabic mobile roles. The catalog shows example instructions; it is not a team of running agents.

MCP and permissions · Canvases · REST API

Forms

Every form on the site can store its submissions. Inbox → Forms lists your forms, and each one has its own table whose columns are that form's fields. Add a Form section in the page builder to define fields, a button label and a thank-you message, or post to /forms/{slug} with the CSRF token to capture a form from a theme. Site forms.

Forms admin showing one form's table with fictional entries, status, and one column per field
One form's table of entries
Page builder with a Form section open, showing its slug, thank-you message and field editor
Form section in the page builder

Connect your site's services

Mail, media storage, chat, analytics and backups are five services with one shape. A person, an agent or a script connects them the same way: gorun service list | get | set | test | off from the shell, the MCP services toolset, or /api/v1/site/services. Each answers with the service's state and what is still missing, and never with a secret.

A secret (an SMTP password, a Resend key, S3 keys) never travels through MCP or REST. The shell takes it on stdin with --secret-stdin. Otherwise the answer carries a one-time admin link, valid for 15 minutes, once, for that service, where a person with settings.manage types it into GoRun itself. Chat is a typed service too: set a Chatwoot server and inbox token and GoRun prints the widget on theme pages and opens its CSP for that host only.

One-time admin page where a person types the Resend key that an API call asked for; the key never passed through the API
The one-time link: the secret is typed here, not sent by the caller
The same one-time secret page in Arabic
The same page in Arabic
printf '%s\n' "$RESEND_KEY" | gorun service set mail provider=resend from=hello@example.com --secret-stdin
gorun service list

Site services · MCP services toolset

Operate with confidence

Schedule daily or weekly local backups, track verified success and storage, and inspect failure alerts. Preview a disposable, read-only restore on localhost before restoring into a new directory. gorun doctor diagnoses an existing site without migrating or repairing it.

Extension screens distinguish Server directory, Uploaded ZIP and Legacy: method not recorded. An installation method does not establish a package's origin or safety. Installation-method guide.

Extension directory grouped by recorded installation method, including unknown legacy records

Extensions grouped by installation method

Arabic extension methods on mobile.

Backups and recovery · Local diagnostics

Find your next step

I want to… Start here
Install or deploy GoRun Installation · Production
Create or customize a theme Theme tutorial
Build an integration Plugin tutorial · REST · MCP
Build on the Go core Architecture
Operate an existing site Backups · Upgrades · Troubleshooting
Explore everything Documentation index

Project status

GoRun is under active development. Use the latest stable release; the main branch may contain features awaiting release.

Run one server process per SQLite data directory. Canvases are private to their owner with explicit agent access. Full-site generation from a single prompt is not available. Core updates never run on their own: an operator starts a staged update under Operations → System updates, which checks compatibility, verifies the release, takes a backup, then activates and health-checks the new version. Backups restore into a new directory; switching live traffic remains an operator action. Provider-backed generation and payments require valid credentials and deployment-specific checks.

Screenshots show an isolated local installation with fictional demonstration content. They do not show customer data or a connected provider.

Contribute

Bug reports, documentation improvements and contributions are welcome. Read the contribution guide and security policy. GoRun is released under GNU AGPL v3; see NOTICE and the changelog.

About

Self-hosted CMS in Go and SQLite: bilingual admin, page builder, canvases, REST and MCP. AGPL-3.0.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages