CodeWork
CLI

Installation

Install the CodeWork CLI, connect a model, and keep it up to date.

Install

curl
curl -fsSL https://codework.sh/install | sh
pnpm
pnpm add -g @codeworksh/cli

The curl script installs a standalone binary that doesn’t need Node.js. It supports macOS (Apple silicon) and Linux (arm64, x64, glibc). On other systems, such as Intel Macs or Linux with musl, the script stops and points you to pnpm. The pnpm package needs Node.js 24.14.1 or later.

The curl script installs one codework binary to ~/.codework/bin, or to CODEWORK_INSTALL_DIR if you set it. If that folder isn’t on your PATH, the script adds it to your shell’s startup file (zsh, bash, or fish) and tells you to open a new shell. For other shells, it prints the line for you to add.

FlagWhat it does
--devInstall the newest development build
--version <version>Install a specific release, such as 0.6.0
--no-modify-pathLeave your shell’s startup file alone

Pass flags after sh -s --, as in curl -fsSL https://codework.sh/install | sh -s -- --dev.

Check that codework is on your PATH:

codework --help

Every command is codework <command>. Add --help to any command to see its flags.

Connect a model

CodeWork needs access to at least one model provider. You can sign in with a subscription:

codework auth login --openai-codex
codework auth login --github-copilot

Or set an API key:

export OPENROUTER_API_KEY="..."
export GEMINI_API_KEY="..."

Credentials from codework auth login are stored in your CodeWork home (~/.codework by default) and refreshed automatically. See Models & Pricing for every provider.

Check what CodeWork can see:

codework auth status --openai-codex
codework models

Where CodeWork keeps its files

PathWhat’s in it
~/.codework/settings.jsoncUser settings: default model, plugins
~/.codework/aikit/auth.jsonSubscription credentials
~/.codework/mcp.jsonYour MCP servers
~/.codework/mcpauth.jsonMCP server sign-ins
~/.codework/models.gen.jsonThe model catalog, downloaded again when older than 15 minutes
<project>/.codework/settings.jsoncProject settings, layered over your user settings
<project>/.codework/mcp.jsonProject MCP servers

Use --home on any command, or set CODEWORK_HOME_DIR, to point CodeWork at a different home.

Update

curl
curl -fsSL https://codework.sh/install | sh
pnpm
pnpm add -g @codeworksh/cli@latest

Uninstall

If you installed with curl, delete ~/.codework/bin/codework and the PATH line the script added to your shell’s startup file.

pnpm
pnpm remove -g @codeworksh/cli

Either way, ~/.codework stays in place. Delete it too if you want to remove your sessions, settings, and credentials.