@codeworksh/cli weekly downloads statistics
By codeworksh (3 listings) · npm · AI SDKs
CLI for running CodeWork coding agent harness.
@codeworksh/cli has 3,187 recorded weekly downloads on npm, a decrease of 40.8% over the past 30 days, ranking #1713 of 3,247 tracked listings.
About @codeworksh/cli
@codeworksh/cli
The codework binary: run coding-agent sessions from your terminal, and serve them to the CLI, the desktop app and paired machines from a long-lived RPC server.
Install
pnpm add -g @codeworksh/cli
Requires Node 24.14.1 or newer. Every command is then codework <command>, and codework <command> --help lists its flags.
Quick Start
# Sign in with an OAuth provider, or set its usual API key env var (e.g. ANTHROPIC_API_KEY)
codework auth login --openai-codex
# Start a session in this directory, with the harness running in-process
codework run "Inspect the failing tests"
# Continue it, on its main thread or another one
codework run --session <session-id> "Now fix them"
codework run --session <session-id> --thread <thread-id> "Try it without the cache"
# Or keep a server running and send runs to it
codework service start
codework run --server ws://127.0.0.1:7433/rpc/v1 "Inspect the failing tests"
Commands
| Command | What it does |
|---|---|
run | Start or continue a session, in-process or on the server with --server |
serve | Run the RPC server in the foreground (default 127.0.0.1:7433) |
service | Start, stop or check the background server; pair, list and revoke devices |
session link, relink | Anchor a session to a host directory, or move a session or thread somewhere else |
thread list, fork | List a session's threads, or start a new one from a point in a thread's history |
auth | Log in to, inspect, refresh or log out of openai-codex and github-copilot |
mcp | Add, remove, list, sign in to and reconnect MCP servers in mcp.json |
plugin | Add, install, list, update, reload and remove plugins in settings.jsonc |
models | List catalog models and providers, or refresh the catalog |
connect, disconnect | Link this machine to a Relay workspace, or leave one |
acp | Serve the Agent Client Protocol on stdio for editors, always in-process |
Every command takes --home (default ~/.codework, or CODEWORK_HOME_DIR): the user settings, credentials, catalog, database and machine identity it works with. --user-config-dir replaces the user settings file, and --database picks the SQLite file.
What It Owns
This package is the host: the only place an agent runs. It owns the CLI, the RPC server and its contract, and the machine's identity, which is its paired devices and its Relay workspace links. It builds on @codeworksh/harness and @codeworksh/aikit, and nothing in the core imports it, so the harness never knows how it is reached.
Two rules shape the CLI:
- In-process and
--serverboth stay supported. They share the home and database, so a session made by one is readable by the other. With--server, harness flags like--databasebelong onserve. - The CLI only talks to its own home's server.
--servermust be the server<home>/service.jsonnames. Other machines are reached by the desktop app as a paired device.
See docs/internals/09_server.md for the contract, admission, pairing and shutdown rules.
Code Map
src/index.tsis the entry point, mapping each command to its lazily imported handler.src/cli/cmd/cmd.tsdeclares every command, flag and example.src/cli/cmd/handlersholds one handler per command.src/cli/harness.tsbuilds the harness optionsrunandservemust share.src/cli/service.tsfinds and connects to the home's server.src/server/server.tsassembles the RPC server and fixes its startup and shutdown order.- The RPC contract is
@codeworksh/schema/host(packages/schema/src/host.ts), whichsrc/server/contract.tsre-exports;src/server/handlers.tsimplements it over harness services. src/server/door.tsandsrc/server/pairing.tsdecide who may connect.src/machinekeepsmachine.json, Relay connects and the heartbeat.src/acpis the ACP server.
Working Locally
From packages/codework (or pnpm dev:cli at the repo root), start runs src/index.ts with --conditions=development so workspace packages resolve to source:
pnpm start --help
pnpm start models
pnpm start run "Inspect the failing tests"
pnpm test
pnpm check
pnpm build packs the published dist build.
License
MIT
Description from the npm listing.
- agent
- ai
- ai-sdk
- anthropic
- grok
- harness
- llm
- node
- openai
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (170)Similar npm AI SDKs plugins
All 20 @codeworksh/cli alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/@codeworksh/cli. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.