npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

agent-office-cli

v0.1.9

Published

Run and manage AI agent sessions locally, with optional relay to agentoffice.top

Readme

agent-office-cli

agent-office-cli is the local runtime for AgentOffice.

It starts the local session manager, restores tmux-backed AI workers, connects your machine to the hosted relay, and lets you launch or attach to Claude Code / Codex sessions from the terminal.

What This Package Does

  • Starts the local AgentOffice service with ato start
  • Restores existing tmux-backed workers after restart
  • Connects your machine to agentoffice.top or a custom relay
  • Launches Claude Code and Codex workers with one command
  • Exposes local worker terminals to the AgentOffice web or mobile UI

Install

npm i -g agent-office-cli

Requirements

  • Node.js 18+
  • tmux
  • Claude Code and/or Codex CLI if you want to launch those providers

Example on macOS:

brew install tmux

Quick Start

  1. Create an API key on https://agentoffice.top
  2. Start the local runtime
  3. Launch workers from another terminal

Using an environment variable:

export AGENTOFFICE_API_KEY=sk_your_api_key
ato start

Or pass the key directly:

ato start --key sk_your_api_key

Launch workers:

ato claude
ato codex

Launch with a custom title:

ato claude -t "Review PR #42"
ato codex -t "Fix login bug"

Attach your local terminal to an existing worker:

ato attach <sessionId>

Common Commands

ato start

Starts the local AgentOffice runtime, restores managed sessions, and connects to the hosted relay when an API key is present.

Examples:

ato start
ato start --key sk_your_api_key
ato start --key sk_your_api_key --relay https://your-relay.example.com

Notes:

  • On macOS, ato start keeps the machine awake while the tunnel is active
  • Hosted tunnel logs are written to ~/.agentoffice/logs/tunnel.log

ato claude

Launches a Claude Code worker in tmux so it can be supervised from AgentOffice.

ato claude
ato claude -t "Investigate flaky test"

ato codex

Launches a Codex worker in tmux.

ato codex
ato codex -t "Refactor websocket retry logic"

ato attach

Attaches your local shell directly to a worker's tmux session.

ato attach <sessionId>

Hosted Mode

When you start the runtime with an API key, the CLI opens a secure tunnel from your local machine to the AgentOffice relay.

That tunnel is used to:

  • show your workers in the Office UI
  • open remote terminals from web or mobile
  • launch workers from the AgentOffice interface
  • proxy requests into the local runtime

If the connection drops, the tunnel automatically retries and records reconnect details in the local tunnel log.

Troubleshooting

tmux is required

Install tmux first, then run ato start again.

Worker launch commands are missing

Make sure the provider CLI is installed and available on PATH:

  • claude
  • codex

Remote Office shows offline

Check the local tunnel log:

tail -n 100 ~/.agentoffice/logs/tunnel.log

Look for:

  • websocket connection errors
  • reconnect attempts
  • auth failures
  • relay disconnect reasons

Package Scope

This package is the CLI/runtime portion of AgentOffice only.

It does not include the full web app source or product docs. Those live in the main repository:

  • GitHub: https://github.com/fakeou/agent-office

License

MIT