Clone and run
How to clone arka-deck, install it, and run it in dev mode.
Prerequisites
Section titled “Prerequisites”- Node.js ≥ 20.19.0 (nvm recommended for managing multiple versions).
- Modern Git with DCO support.
- A few hundred MB of disk space.
- At least one AI provider API key (Anthropic, Google, OpenAI) to actually use the app.
git clone https://github.com/arka-squad/arka-deck.gitcd arka-deckIf you plan to contribute:
git remote add upstream https://github.com/arka-squad/arka-deck.gitgit remote set-url origin <your-fork>Install
Section titled “Install”npm installnpm --prefix adapters/inbound/web/ui installnpm --prefix addons/cortex-lite installThe project is an informal monorepo: root + UI sub-package + Cortex Lite sub-package. Three npm install cover all dependencies.
First run
Section titled “First run”npm run arka:startThe arka-cli.mjs script:
- Builds the UI if needed (Vite production).
- Spawns
bin/arka-deckdetached. - Redirects logs to
.arka-web.log. - Writes the PID to
.arka-pid. - Pings
/api/healthuntil ready.
Open http://127.0.0.1:3117 in your browser.
UI dev mode (hot reload)
Section titled “UI dev mode (hot reload)”To develop the UI with hot reload:
# Terminal 1 — Fastify servernpm run arka:start
# Terminal 2 — Vite dev servernpm run dev:uiThe Vite UI runs on a separate port (default 5173) and proxies API calls to 127.0.0.1:3117.
Enable local Git hooks
Section titled “Enable local Git hooks”git config core.hooksPath .githooksEnables the pre-commit hook that:
- Lints staged files.
- Verifies DCO sign-off.
- Refuses internal files (
.input/,.claude/except exceptions).
Verify the environment
Section titled “Verify the environment”npm run typecheck -- --pretty falsenpm run lintnpm testIf everything is green, your environment is ready to contribute.
npm run arka:stopOr simply Ctrl+C in the server terminal if not detached.
See also
Section titled “See also”- Contribution conventions: ./conventions (coming)
- CLI reference: ../reference/cli
- Env variables: ../reference/variables-env