nexul

module
v0.3.81-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2026 License: AGPL-3.0

README

Nexul

One loop from docs to deploy, on servers you own.

CI Docs Go

[!WARNING] Nexul is in beta. Expect rough edges and breaking changes between releases.

Nexul is a self-hosted workspace for teams that ship with coding agents. Docs, tickets, chat, CI runners, and deploys to your own servers sit in one app, and one MCP server exposes all of it, so an agent uses the same tools people do.

Alternative to

Area Instead of
Project management Linear, Jira
Docs Notion, Confluence
Chat and calls Slack, Discord
Deploys Heroku, Vercel, Netlify, Render
CI runners GitHub Actions self-hosted runners
The agent layer One MCP server over everything above, not an agent bolted onto each tool

Phew, that is a lot of tabs to close.

Where the idea comes from

  • mattpocock/skills: grill an idea against the docs and a board of scoped tickets falls out in one sitting.
  • pingdotgg/t3code: once an agent does the typing, running several pieces of work in parallel is natural, and that changes how code should be written.
  • pstack, Lauren Tan's engineering-discipline pack: short principles and playbooks go a long way when an agent checks its own work against them.

Nexul applies all three to the whole loop, from the doc to the deploy.

The core idea

Docs, tickets, code, reviews, deploys, server topology, and run logs are linked and searchable in one place, so an agent can run the whole loop without leaving it.

docs      land the idea; unclear? run the /wayfinder or /grill-with-docs play
tickets   derived from the docs, each one scoped
work      a person or an agent, the owner's choice
PRs       linked back to the ticket and the doc
review    linked and indexed
deploy    a runner executes it, the topology updates live
index     the next loop starts with full context

Each step is a use case. The web app reaches it through the HTTP gateway and agents reach it through MCP, so both run the same code. A personal access token carries its user's permissions, and its calls are recorded as that user.

Who it's for

  • Solo developers and small teams who self-host: one install command, native services on one port, no managed services.
  • Teams running coding agents that need a tracker, docs, and deploys a machine can query and act on.
  • Operators deploying to ordinary servers who want a live topology view without Kubernetes.

Functions

Everything below is in the AGPL edition and runs on your own servers. The guide covers each area.

Domain Done Summary
Workspaces and projects ✅ One instance, many workspaces, each with its own projects, members, and settings. A project owns its docs, board, and repositories.
Docs ✅ Rich text with version history, named versions, @ mentions, attachments, and markdown import and export. Tickets derive from docs, and each doc has one thread for discussing its work.
Live collaboration ✅ Several people edit a doc at once with live cursors. The UI updates over WebSockets without a refresh.
Tickets and the board ✅ A Kanban board per project with configurable statuses in five fixed stages, ticket types, labels, and swimlanes. A ticket is finished once a linked PR merges and none are still open.
Chat ✅ Channels, direct messages, and one thread per ticket and per doc. Mention a person or @Agent; the events you care about land in an inbox.
Voice ✅ Voice rooms with screen share and camera on your own LiveKit server, each with its own text chat.
Plays ✅ One-button agent runs from a ticket or doc ("Fix with AI", "To tickets via AI"). A run uses your paired coding harness and your permissions, and its transcript lands in the thread as a trail you can read, stop, or answer.
Memories ✅ Versioned notes for agents, per project. Agents can write them too, and every agent turn gets the index.
Code review ✅ Each linked PR's review state, shown on the ticket. Review threads stay on the Git host.
Git providers ✅ GitHub through a GitHub App: repositories, branches, pull requests, and webhooks.
Stacks and deploys ✅ A repository becomes a stack (a compose file, or a single Dockerfile) that a runner deploys with docker compose up. History, cancel, one-click rollback, a preview deployment per branch, and import of containers already running on a machine.
Runners and machines ✅ A small service on each machine dials out over a WebSocket, so the server holds no SSH keys. One command installs a named runner; several can share a machine, each with its own credential. Work queues until a runner connects.
Topology ✅ A canvas of every service, network, gateway, and hostname, with each node's status as its runner last saw it.
DNS and exposure ✅ Cloudflare zones and records, tunnels for hosting with no open ports, and gateways that expose one hostname to one container.
Automations ✅ Event-driven TypeScript on @otal-labs/nexul-sdk, run on the bundled host or on one you place on any machine. Each automation has its own scoped token and reads a shared secrets pool.
Connectors and integrations ✅ Instance-wide credentials for GitHub, Cloudflare, and LiveKit. Integrations get scoped tokens, signed outgoing webhooks, and an OpenAPI 3 spec at /openapi.json.
Access ✅ Invitation links, OAuth sign-in, custom roles per workspace, per-user permission overwrites, and personal access tokens, all checked against one <domain>:<action> vocabulary.
Search ✅ Full-text search over docs, tickets, and ticket notes, from the docs page, the API, and MCP.
MCP server ✅ Task-shaped tools on the official MCP Go SDK, plus resources and workflow prompts, over stateless Streamable HTTP at /mcp. Tools are marked read-only or destructive, lists are paged, and errors say what the agent should fix.
Logs ✅ Server logs go to the OpenObserve that nexul install sets up (at /openobserve/ on the same port) or to any OTLP/HTTP backend. Browser console errors join the same stream.
Desktop app ✅ An Electron shell that imports connection tokens, keeps a list of instances, and loads the one you pick.
Instance upgrade ✅ Settings shows the running and newest versions. One click (or the instance_upgrade tool) upgrades every Nexul service on the server.
Call notes ⬜ A speech-to-text model takes notes on a voice call and writes the summary into the doc.
SSO ⬜ OIDC and SAML sign-in (Google, Microsoft Entra, Okta) with just-in-time user provisioning.
External secrets ⬜ Read secrets from Vault, 1Password, or a cloud secrets manager instead of storing them in Nexul.

Contributing

Go (version in go.mod) and Bun are the only prerequisites. Start with CONTRIBUTING.md; the contributor docs have the rest. AGENTS.md is written for coding agents and reads fine for people. ROADMAP.md is where the product is going, .scratch/ holds the open specs and tickets, and CONTEXT.md is the vocabulary.

License

Nexul is open core: one repository, two licenses.

  • Everything outside ee/ is AGPL-3.0-or-later. Run it, change it, and self-host it at any company size. If you offer a modified copy over a network, publish your changes.
  • Everything inside ee/ is under a commercial license (ee/LICENSE). You can read and patch it, but running it in production needs a subscription. Today the directory holds only the license.

Outside contributions need the Contributor License Agreement so the project can keep licensing both parts. Tick the box in the pull request template to agree.

Enterprise Edition (EE)

What the subscription will include.

Feature Done Summary
Cloud hosting ⬜ A managed control plane we run. Your runners and servers stay yours.
Priority support ⬜ A response-time SLA and a direct channel.

Directories

Path Synopsis
cmd
nexul command
Command nexul installs, upgrades and removes Nexul's services on this machine: the server, OpenObserve, runners and automations hosts.
Command nexul installs, upgrades and removes Nexul's services on this machine: the server, OpenObserve, runners and automations hosts.
internal
access
Package access implements permission overwrites, the HasPermission check, and doc-permission use-cases.
Package access implements permission overwrites, the HasPermission check, and doc-permission use-cases.
auth
Package auth implements the identity and session use-cases (ADR 0019).
Package auth implements the identity and session use-cases (ADR 0019).
automations
Package automations implements first-party event-driven code, not a no-code rule engine.
Package automations implements first-party event-driven code, not a no-code rule engine.
botwebhook
Package botwebhook implements bots: named posters bound to one conversation, driven from outside through a Discord-compatible webhook URL whose token is the credential.
Package botwebhook implements bots: named posters bound to one conversation, driven from outside through a Discord-compatible webhook URL whose token is the credential.
calendar
Package calendar is the workspace calendar (ADR 0168): meetings, who is invited and their replies, and the reminders sent before a meeting starts and the day before a ticket is due.
Package calendar is the workspace calendar (ADR 0168): meetings, who is invited and their replies, and the reminders sent before a meeting starts and the day before a ticket is due.
chat
Package chat implements the chat domain core: conversations, messages, and per-user unread state.
Package chat implements the chat domain core: conversations, messages, and per-user unread state.
connectors
Package connectors holds credentials the instance uses to call out to third-party tools on its own behalf.
Package connectors holds credentials the instance uses to call out to third-party tools on its own behalf.
connectors/cloudflare
Package cloudflare implements connectors.OAuthClient against Cloudflare's OAuth app, reading credentials live.
Package cloudflare implements connectors.OAuthClient against Cloudflare's OAuth app, reading credentials live.
connectors/github
Package github implements connectors.OAuthClient against a GitHub App, reading AppConfig fresh on every call.
Package github implements connectors.OAuthClient against a GitHub App, reading AppConfig fresh on every call.
crashintake
Package crashintake turns crash reports a bot posts into bug tickets: one per crash, a running note for its repeats, and a new high-priority bug when a crash returns in a build that holds its fix.
Package crashintake turns crash reports a bot posts into bug tickets: one per crash, a running note for its repeats, and a new high-priority bug when a crash returns in a build that holds its fix.
dns
dns/cloudflare
Package cloudflare implements dns.DNSProvider against Cloudflare's v4 API.
Package cloudflare implements dns.DNSProvider against Cloudflare's v4 API.
docs/richtext
Package richtext converts between the docs domain's canonical structured rich text (Tiptap JSON, ADR 0026) and CommonMark.
Package richtext converts between the docs domain's canonical structured rich text (Tiptap JSON, ADR 0026) and CommonMark.
eventcatalog
Package eventcatalog aggregates every domain's published topics and serves their published schemas (ADR 0137).
Package eventcatalog aggregates every domain's published topics and serves their published schemas (ADR 0137).
gitprovider/github
Package github implements gitprovider.GitProvider against GitHub via go-github.
Package github implements gitprovider.GitProvider against GitHub via go-github.
harness
Package harness is the seam between Nexul and an agent harness (T3 Code today, others later): one Client per kind, registered by Kind, and only harness-neutral types cross it (ADR 0054).
Package harness is the seam between Nexul and an agent harness (T3 Code today, others later): one Client per kind, registered by Kind, and only harness-neutral types cross it (ADR 0054).
harness/harnesstest
Package harnesstest is the one in-memory harness.Client every domain test uses instead of its own fake.
Package harnesstest is the one in-memory harness.Client every domain test uses instead of its own fake.
install
Package install puts Nexul on a Linux server, a Mac or a Windows PC as native services and keeps it current: the nexul command's install, upgrade, status and uninstall commands.
Package install puts Nexul on a Linux server, a Mac or a Windows PC as native services and keeps it current: the nexul command's install, upgrade, status and uninstall commands.
integrations
Package integrations implements scoped API tokens, signed webhooks-out, the schema catalog, and audit log (ADR 0043).
Package integrations implements scoped API tokens, signed webhooks-out, the schema catalog, and audit log (ADR 0043).
livekit
Package livekit is a minimal, stdlib-only LiveKit client; deliberately skips the server-sdk-go dependency.
Package livekit is a minimal, stdlib-only LiveKit client; deliberately skips the server-sdk-go dependency.
mcp
Package mcp is the Model Context Protocol adapter: the official SDK's stateless Streamable HTTP handler over the tools, resources, and prompts the domains declare (ADR 0067).
Package mcp is the Model Context Protocol adapter: the official SDK's stateless Streamable HTTP handler over the tools, resources, and prompts the domains declare (ADR 0067).
mcp/composite
Package composite holds the MCP tools that compose more than one domain; it imports only the domains it composes.
Package composite holds the MCP tools that compose more than one domain; it imports only the domains it composes.
mentions
Package mentions implements the @-mention/chip resolution seam.
Package mentions implements the @-mention/chip resolution seam.
pairing
Package pairing implements the user-level half of @Agent: paired computers, their harness sessions, and defaults.
Package pairing implements the user-level half of @Agent: paired computers, their harness sessions, and defaults.
platform/colors
Package colors defines what every owner-configurable color field accepts: a suggested hue or any hex color.
Package colors defines what every owner-configurable color field accepts: a suggested hue or any hex color.
platform/containerlog
Package containerlog serves container logs read live from Docker through a runner (ADR 0091): a snapshot of the last lines over HTTP, or a live tail over a WebSocket per viewer.
Package containerlog serves container logs read live from Docker through a runner (ADR 0091): a snapshot of the last lines over HTTP, or a live tail over a WebSocket per viewer.
platform/crypto
Package crypto provides authenticated-encryption helpers for secrets at rest.
Package crypto provides authenticated-encryption helpers for secrets at rest.
platform/errors
Package apperrors defines the cross-cutting sentinel errors; named so callers can also import "errors".
Package apperrors defines the cross-cutting sentinel errors; named so callers can also import "errors".
platform/eventbus/deadletter
Package deadletter persists events that exhausted retries or failed permanently, and replays them back onto the bus.
Package deadletter persists events that exhausted retries or failed permanently, and replays them back onto the bus.
platform/eventbus/inprocess
Package inprocess implements the Day-1 EventBus over in-process channels.
Package inprocess implements the Day-1 EventBus over in-process channels.
platform/eventbus/outbox
Package outbox implements the transactional outbox.
Package outbox implements the transactional outbox.
platform/eventbus/processed
Package processed holds the consumer-side idempotency store.
Package processed holds the consumer-side idempotency store.
platform/eventbus/testutil
Package testutil provides shared test helpers for the eventbus packages.
Package testutil provides shared test helpers for the eventbus packages.
platform/freshdns
Package freshdns resolves names through a public resolver before the host's, so a record created seconds ago is not hidden behind the negative answer the host's resolver cached while it did not exist yet (Cloudflare zones cache "no such name" for 30 minutes).
Package freshdns resolves names through a public resolver before the host's, so a record created seconds ago is not hidden behind the negative answer the host's resolver cached while it did not exist yet (Cloudflare zones cache "no such name" for 30 minutes).
platform/githubapp
Package githubapp checks a GitHub App registration live, so a typo never gets stored as this instance's login app.
Package githubapp checks a GitHub App registration live, so a typo never gets stored as this instance's login app.
platform/hostcred
Package hostcred mints and checks the one-time enrollment codes and long-lived credentials hosts (runners, automations hosts) authenticate with; only hashes are ever stored.
Package hostcred mints and checks the one-time enrollment codes and long-lived credentials hosts (runners, automations hosts) authenticate with; only hashes are ever stored.
platform/httpx
Package httpx provides the JSON/error adapter helpers shared by the domain HTTP gateways (ADR 0019).
Package httpx provides the JSON/error adapter helpers shared by the domain HTTP gateways (ADR 0019).
platform/identity
Package identity carries the acting user through a request context, so use-cases enforce access without auth.
Package identity carries the acting user through a request context, so use-cases enforce access without auth.
platform/ids
Package ids generates the time-sortable UUIDv7 identifiers domain use-cases mint for new rows.
Package ids generates the time-sortable UUIDv7 identifiers domain use-cases mint for new rows.
platform/jsonx
Package jsonx is the JSON encoder every adapter and event payload shares, so clients always get arrays.
Package jsonx is the JSON encoder every adapter and event payload shares, so clients always get arrays.
platform/live
Package live fans bus events out to connected browser WebSockets; callers decide which topics to bridge.
Package live fans bus events out to connected browser WebSockets; callers decide which topics to bridge.
platform/logstore
Package logstore reads Nexul's own logs back out of OpenObserve on the caller's behalf (ADR 0155).
Package logstore reads Nexul's own logs back out of OpenObserve on the caller's behalf (ADR 0155).
platform/mcptool
Package mcptool is the MCP tool contract every domain declares its tools with; only internal/mcp speaks the protocol.
Package mcptool is the MCP tool contract every domain declares its tools with; only internal/mcp speaks the protocol.
platform/oauthx
Package oauthx is the shared form-encoded OAuth token-exchange POST used by every provider client.
Package oauthx is the shared form-encoded OAuth token-exchange POST used by every provider client.
platform/openapi
Package openapi builds an OpenAPI 3.0.x document from gateway route registrations (ADR 0045).
Package openapi builds an OpenAPI 3.0.x document from gateway route registrations (ADR 0045).
platform/paging
Package paging is the stretch of a list a use-case reads in SQL, the same for the HTTP gateway and MCP (ADR 0140).
Package paging is the stretch of a list a use-case reads in SQL, the same for the HTTP gateway and MCP (ADR 0140).
platform/permissions
Package permissions defines the one domain x action vocabulary shared by roles, tokens, and the agent: read, write, and delete on every domain, plus a further verb a domain may declare (ADR 0057).
Package permissions defines the one domain x action vocabulary shared by roles, tokens, and the agent: read, write, and delete on every domain, plus a further verb a domain may declare (ADR 0057).
platform/redact
Package redact hides credentials in text that is saved, such as an agent turn's transcript.
Package redact hides credentials in text that is saved, such as an agent turn's transcript.
platform/release
Package release is a small GitHub Releases client for the Nexul repo, shared by the runner download proxy and the /api/version handler so both hit the same 5-minute cache.
Package release is a small GitHub Releases client for the Nexul repo, shared by the runner download proxy and the /api/version handler so both hit the same 5-minute cache.
platform/skills
Package skills holds the agent skills Nexul writes to paired computers, each versioned by its own content.
Package skills holds the agent skills Nexul writes to paired computers, each versioned by its own content.
platform/storage/testutil
Package testutil holds storage fixtures for tests in any package that migrates a real database.
Package testutil holds storage fixtures for tests in any package that migrates a real database.
platform/storage/testutil/migrated
Package migrated hands tests a copy of one migrated database built per test binary, because replaying every migration per test costs seconds under -race.
Package migrated hands tests a copy of one migrated database built per test binary, because replaying every migration per test costs seconds under -race.
platform/textedit
Package textedit applies find-and-replace edits to a body, so a change never needs the whole body resent.
Package textedit applies find-and-replace edits to a body, so a change never needs the whole body resent.
platform/version
Package version holds the single build-stamped version both binaries read (server and runner).
Package version holds the single build-stamped version both binaries read (server and runner).
platform/wake
Package wake is a broadcast that any number of loops can wait on, so one event reaches all of them.
Package wake is a broadcast that any number of loops can wait on, so one event reaches all of them.
platform/welcomestep
Package welcomestep is the vocabulary of Welcome wizard steps a role can give: roles store the keys, welcome reads them.
Package welcomestep is the vocabulary of Welcome wizard steps a role can give: roles store the keys, welcome reads them.
platform/wordcount
Package wordcount sizes a text edit as the words added and removed, the figures a version's change size shows.
Package wordcount sizes a text edit as the words added and removed, the figures a version's change size shows.
plays
Package plays implements the Play entity: a workspace-scoped, user-fired Agent turn definition (ADR 0055).
Package plays implements the Play entity: a workspace-scoped, user-fired Agent turn definition (ADR 0055).
presence
Package presence holds one harness connection per paired computer while its owner has a live browser WS.
Package presence holds one harness connection per paired computer while its owner has a live browser WS.
push
Package push sends one Expo push message per phone session for every notification written to an inbox.
Package push sends one Expo push message per phone session for every notification written to an inbox.
repository
Package repository reads a git repository's tree and proposes deployable candidates: compose stacks and standalone Dockerfiles, with their services, ports and env keys.
Package repository reads a git repository's tree and proposes deployable candidates: compose stacks and standalone Dockerfiles, with their services, ports and env keys.
roles
Package roles implements the Role entity: a permission catalog with a protected singleton Owner role.
Package roles implements the Role entity: a permission catalog with a protected singleton Owner role.
t3client
Package t3client is the harness.Client for T3 Code on orchestration protocol 1; a T3 past it answers harness.MovedError.
Package t3client is the harness.Client for T3 Code on orchestration protocol 1; a T3 past it answers harness.MovedError.
t3clientv2
Package t3clientv2 is the harness.Client for T3 Code servers on orchestration protocol 2, over the t3rpc transport.
Package t3clientv2 is the harness.Client for T3 Code servers on orchestration protocol 2, over the t3rpc transport.
t3rpc
Package t3rpc speaks T3 Code's Effect RPC protocol over one WebSocket: the transport both orchestration protocols share.
Package t3rpc speaks T3 Code's Effect RPC protocol over one WebSocket: the transport both orchestration protocols share.
t3rpc/t3rpctest
Package t3rpctest is a fake T3 Code server every T3 client's tests share: the pairing exchange, the wsTicket mint, the /ws Effect RPC socket, and the environment descriptor.
Package t3rpctest is a fake T3 Code server every T3 client's tests share: the pairing exchange, the wsTicket mint, the /ws Effect RPC socket, and the environment descriptor.
templates
Package templates implements the instance layer every template resolves through (ADR 0103): the code default, then the instance template, then the workspace or project that holds its own text.
Package templates implements the instance layer every template resolves through (ADR 0103): the code default, then the instance template, then the workspace or project that holds its own text.
tenancy
Package tenancy implements Workspace; named "tenancy" since internal/workspace already claimed that name.
Package tenancy implements Workspace; named "tenancy" since internal/workspace already claimed that name.
voice
Package voice owns LiveKit interaction for voice channels: join tokens, webhooks, and room occupancy (ADR 0030).
Package voice owns LiveKit interaction for voice channels: join tokens, webhooks, and room occupancy (ADR 0030).
welcome
Package welcome works out each person's Welcome wizard progress: the steps their roles give them, which are done, which they skipped, and whether any lights the account menu's dot.
Package welcome works out each person's Welcome wizard progress: the steps their roles give them, which are done, which they skipped, and whether any lights the account menu's dot.
workspace
Package workspace implements projects, repositories, ticket moves, and the notifications inbox (ADR 0019).
Package workspace implements projects, repositories, ticket moves, and the notifications inbox (ADR 0019).
runner
cmd command
server
cmd command
webui
Package webui serves the built web frontend from the server binary in single-binary mode.
Package webui serves the built web frontend from the server binary in single-binary mode.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL