Self-host with arks
You can host an independent arks forge with the same arks CLI — git remotes and a forge API for PRs/issues — no separate server product, and no need to run git or gh underneath.
This is the arks product self-host story: localhost, intranet (LAN), and optionally the internet (WAN). Stock git-daemon flag parity is related but not the same story. Forge client ops are flat on the same binary (arks pr, arks issue, … — like gh without a second CLI).
What arks does
- Speaks git-compatible clone / fetch / push on claimed transports
- Runs a single
arks serveprocess that can listen for HTTP, SSH, and forge API together (product default) - Auth for remotes aligns with stock Git: HTTP Basic + HTTPS/TLS for HTTP; SSH keys for SSH
- Forge API auth is for
arks hubtalking to the forge module — not a substitute for Git remote auth - Never spawns
gitorghon product paths
Commands (product surface)
arks serve [--no-http] [--no-ssh] [--no-forge] [listener flags…] <directory>
arks serve config show|set|path|validate|sync …
| Command | Role |
|---|---|
arks serve |
Hosting umbrella — default enables HTTP + SSH + forge API |
arks serve --no-ssh |
Omit in-process SSH |
arks serve --no-http |
Omit HTTP git |
arks serve --no-forge |
Git transports only |
arks serve config … |
Self-host server config (not arks config, not hub client config) |
arks serve-http |
Transitional HTTP-git spelling; not a permanent alias |
arks daemon |
git:// TCP daemon (top-level; weak/no auth; not the GitHub-like story) |
arks pr / issue / auth / … |
Flat client forge ops (peer: gh) |
arks hub … |
Transitional forward to flat leaves — not day-to-day UX |
arks hub serve |
Transitional thin alias toward arks serve forge — not the primary host start |
arks upload-pack / arks receive-pack |
Stdio pack peers (ops SSHD today) |
There is no arks self-host command. Nested arks serve http / serve ssh / serve forge verbs are not the primary surface (flags won).
Target journey
# one host process (self-hosted arks forge)
arks serve /path/to/repos
# clients (merged git + gh surface)
arks clone http://host/repo.git # or stock git
arks pr list --host http://host # flat forge client
Bind: localhost, LAN, WAN
| Reach | What you do | What arks owns |
|---|---|---|
| Localhost | Default loopback-friendly demos | Git wire / forge API on enabled modules |
| LAN | Bind to a LAN address (or all interfaces) + open the host firewall | Same |
| WAN | Bind + firewall + HTTPS/TLS in front (HTTP) and/or SSH keys + firewall | Wire after traffic arrives |
Ops owns: firewall rules, DNS, TLS certificates, reverse proxies. Prefer HTTPS for HTTP off localhost. In-process TLS is B9 Claimed where evidenced (20261110233652-claimed-tls); ops reverse-proxy remains a valid deploy pattern. arks does not claim “safe on the open internet by default.”
Ports (normative vs demo)
Prefer IANA / Git-documented ports in operator-facing clone URLs when you can bind them or put an ops front in front. Unprivileged loopback demos may use higher ports — those are alternates, not “more standard” Git ports.
| Surface | Normative target | Demo / alternate | Why the alternate |
|---|---|---|---|
| SSH git | 22 | 2222 | Non-root bind (<1024 needs privilege) or host sshd already owns 22 |
| HTTP git | 80 | 8080 | Same unprivileged-bind reason |
| HTTPS | 443 | Ops TLS front | Prefer reverse-proxy TLS off localhost |
git:// (arks daemon) |
9418 | — | Already the registered git-daemon default |
| Forge API | 3920 | configurable | arks-local convention (not an IANA Git port) |
Today’s process listen defaults stay loopback-friendly demos (8080 HTTP, 2222 SSH stub, 9418 daemon, 3920 forge) so demos do not require privileged bind. Docs and --help treat 22 / 80 / 443 / 9418 as the product story. See Specfold arks-self-host-server and research 20261111055609.
Auth (Git remote vs forge client)
- HTTP git path: HTTP Basic when configured; prefer HTTPS/SSL/TLS via operator-terminated TLS off-localhost
- SSH path: public keys /
authorized_keys-style expectations. In-process SSH underarks serveis B1/B2 Claimed for OpenSSH-exact ChaCha wire + stockgit clone ssh://e2e (20261110235116-claimed-ssh); durable §17(c) listen + key paths + KEX/NEWKEYS + authorized_keys + exec→pack remain the product path; bind failure fail-closed. Ops SSHD +upload-pack/receive-packremains a valid alternate - Forge API: tokens /
arks hub auth …against the forge module base URL; B3 HTTPS forge remote client e2e is Claimed (20261110233655-claimed-hub-https); local forge-in-serve hosting e2e is Claimed (20261111011425-self-host-forge-e2e) - Fail-closed: if a module is enabled and not Claimed-ready,
arks serveMUST NOT silently degrade while advertising Claimed default-set success (§17). Use--no-ssh/--no-forgewhen you need a narrower Claimed-only path (or transitionalarks hub servefor Partial local forge) git://(arks daemon): typically unauthenticated, no SSL — preferarks servewhen auth matters
Versus other surfaces
Self-host (arks serve) |
arks daemon |
Flat forge client | |
|---|---|---|---|
| Job | Self-hosted forge (git + arks forge API) | Match git-daemon flags |
arks pr / issue / … (peer: gh) |
| Required for git alias? | No (server bar) | No | No |
| Separate binary? | No | No | No |
Honesty
Wire transports (smart HTTP, dumb HTTP, SSH stdio, git://) may already be claimed in Specfold with clean-room receipts. HTTP Basic (when configured) is claimed on the wire path. In-process SSH is B1/B2 Claimed (20261110235116-claimed-ssh) — do not invent beyond that receipt. arks serve ssh-smoke [--git-pack] is a banner / self-listener diagnostic, Claimed as a diagnostic (20261125031425-claimed-smoke); a smoke green is not the B1/B2 proof. Product in-process TLS is B9 Claimed (20261110233652-claimed-tls); hub smoke / --local-tls stay Partial harnesses; B3 HTTPS forge remote e2e is Claimed (20261110233655-claimed-hub-https; never gh). arks serve config: file seed + runtime_* / apply|reload|watch; B7 Claimed for HTTP+SSH+forge zero-downtime rebind (20261110233659-claimed-rebind, 20261111092000-claimed-rebind-ssh, 20261111092000-claimed-rebind-forge); IW-SSH-LABEL readiness Claimed and the durable SSH listener no longer carries a Partial label; reload trigger is SIGHUP on unix and a serve-config file-mtime change on Windows (SIGHUP N/A), the Windows path Claimed by the windows-2025 CI test. Forge API under arks serve is IW-FORGE-SERVE Claimed (20261111011425-self-host-forge-e2e); a dedicated self-host LAN/WAN e2e remains scaffold — do not invent Claimed beyond arks-claimed-residual-gates. Transitional arks hub serve Partial does not invent forge-in-serve Claimed. See Specfold arks-self-host-server.
Next
Ports · Daemon · Forge client · Completeness · Getting started · Limits · Git vs arks