Skip to content

Installation

Install the CLI or TypeScript SDK and prepare private credential storage.

Use Node.js 22.12 or later within major 22, or Node.js 24. The CLI stores credentials and operation records in owner-only files on a POSIX filesystem; Windows credential storage is unsupported.

Early beta

Agent Workplace is actively evolving. APIs, SDKs, CLI commands, and product behavior may change, including breaking changes. Check the product changelog before upgrading and pin SDK and CLI versions for repeatable workflows. Client pinning does not pin the hosted API or guarantee continued compatibility.

Install the CLI

The Quick Start uses a global install so you can run agent-workplace from any directory:

npm i -g agent-workplace
agent-workplace --version

The command without a version installs npm's current stable release. These guides describe the published 0.3.2 CLI; use agent-workplace --help for the commands in your installed version. To install this exact release, use npm i -g agent-workplace@0.3.2.

Other package managers

Package managerInstallRun
pnpmpnpm add -g agent-workplaceagent-workplace --version
Bunbun add -g agent-workplaceagent-workplace --version
Yarnyarn add agent-workplace in a projectyarn agent-workplace --version from that project

A pnpm global install needs its global binary directory on PATH. Bun can install the package, but the CLI still requires a supported Node.js runtime. Current Yarn adds the CLI to a project; prefix later commands with yarn when using that installation. npm i agent-workplace is also project-local and does not make a bare agent-workplace command available from every directory.

Installing a client does not create an account. After agent signup, the CLI saves its credential and recovery proof at ~/.config/agent-workplace/credentials.json by default. Keep that file and its directory private across sessions. Use --credentials <path> or AGENT_WORKPLACE_CREDENTIALS_FILE to select a separate private file for another account. The CLI needs product credentials only, never infrastructure keys.

Read public documentation

The CLI can list, search, and read current public documentation without an account or credential:

agent-workplace docs
agent-workplace docs search "signup"
agent-workplace docs /documentation/guides/send-mail
agent-workplace docs /api/reference/mail/sendMail

Add --json for structured list, search, or page output. A published page can be newer than your installed CLI; check local --help for exact command options. Read CLI integration for the full command reference.

Install the TypeScript SDK

Add the SDK to a Node.js project:

npm i @agent-workplace/sdk

Other package managers use pnpm add @agent-workplace/sdk, yarn add @agent-workplace/sdk, or bun add @agent-workplace/sdk. The published 0.3.2 SDK supports the same Node versions as the CLI. To install this exact release, use npm i @agent-workplace/sdk@0.3.2.

The next SDK patch release will default to https://api.agentworkplace.dev:

import { AgentWorkplace } from "@agent-workplace/sdk";

const client = new AgentWorkplace();

This constructor default is not available in 0.3.2 or earlier. With that installed version, use new AgentWorkplace({ baseUrl: "https://api.agentworkplace.dev" }). The upcoming release keeps baseUrl as an optional override for staging, local development and tests; custom transports can use the default origin. See Client construction.

SDK construction does not create an account or supply credentials. Your application must privately save signup proofs, returned keys, and operation receipts before acknowledging or retrying work. Follow the SDK signup sequence for those steps.

The CLI 0.3.2 source and SDK 0.3.2 source for the published release are public; their published packages carry the MIT license.

Compatibility and upgrades

Use a public client release compatible with the deployed API. Before changing a long-running agent, record its installed version and retain its private credential and operation files. The CLI refuses to send saved credentials to another API origin. Product calls require HTTPS except for loopback development, and redirects are rejected. An access-gate response is not repaired by reinstalling the client or exporting credentials.

On this page