whatisgithub

What is agent-farm-cli?

jasonkneen/agent-farm-cli — explained in plain English

Analysis updated 2026-05-18

63JavaScriptAudience · developerComplexity · 4/5Setup · hard

In one sentence

A macOS CLI that runs multiple isolated AI coding assistant accounts, each in its own virtual machine, so their credentials and settings never collide.

Mindmap

mindmap
  root((Agent-Farm))
    What it does
      Isolates AI accounts
      Runs in per-account VMs
      Shares a work folder
    Tech stack
      Node.js
      Docker
      Apple container
    Use cases
      Multi account isolation
      Shared worktrees
      Custom provider support
    Requirements
      Apple Silicon Mac
      Apple container CLI

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Run separate isolated accounts of Claude, Codex, Grok, or Gemini on one Mac without credential conflicts.

USE CASE 2

Share the same git repository across multiple isolated AI accounts using worktrees.

USE CASE 3

Set up a fresh account, log it into an AI provider, and equip it with skills through an interactive wizard.

USE CASE 4

Add a brand new AI provider client to the farm by installing it into a custom container image.

What is it built with?

JavaScriptNode.jsDockerApple containerBash

How does it compare?

jasonkneen/agent-farm-clistephengrider/coffeescript-ionic-startercdredfox/workbuddy-skin-studio
Stars636364
LanguageJavaScriptJavaScriptJavaScript
Last pushed2015-03-30
MaintenanceDormant
Setup difficultyhardmoderatemoderate
Complexity4/52/53/5
Audiencedeveloperdevelopergeneral

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · hard Time to first run · 1h+

Requires macOS 26+ on Apple Silicon with Apple's container CLI, plus building a container image before first use.

So what is it?

This repository is Agent-Farm, a command line tool for macOS that lets you run multiple isolated AI coding assistant accounts on a single Mac, each in its own virtual machine. It was previously called claude-farm or usage-farm, and its CLI command is simply farm. The core problem it solves is running several accounts of tools like Claude, Codex, Grok, or Gemini side by side without their credentials or settings interfering with each other, since each virtual machine has no access to the Mac's shared login keychain and keeps its own separate provider files on disk. The design splits into three layers: the farm command line tool itself, which lives in this repository, per-account state such as each provider's home directory, installed skills, and settings, stored outside the repository under a hidden folder per account, and a shared workspace of git repositories that is mounted at the exact same file path on the host Mac and inside every virtual machine, so the same project can be worked on from multiple accounts at once. To use it, you need a fairly recent Mac with Apple Silicon and Apple's own container tool installed, plus a couple of common command line utilities. After building the container image once, you can create any number of named accounts, log each one into whichever AI provider you want, clone a shared repository, and create an isolated worktree and branch for a specific account. From there you can run different AI providers against the same shared code from different accounts or even the same account, since each is just a command inside its container. The tool also supports adding entirely new AI provider clients beyond the ones it ships with, by installing the client into the container image and following a simple naming convention for where its credentials should be stored, so the farm command can mount and launch it the same way it does for the built in providers.

Copy-paste prompts

Prompt 1
Explain how Agent-Farm keeps each AI account's credentials isolated using separate VMs.
Prompt 2
Help me set up a new account and log it into Claude using the farm CLI.
Prompt 3
Show me how the shared workspace is mounted at the same path across the host and every VM.
Prompt 4
Walk me through adding a custom AI provider client to this farm setup.

Frequently asked questions

What is agent-farm-cli?

A macOS CLI that runs multiple isolated AI coding assistant accounts, each in its own virtual machine, so their credentials and settings never collide.

What language is agent-farm-cli written in?

Mainly JavaScript. The stack also includes JavaScript, Node.js, Docker.

How hard is agent-farm-cli to set up?

Setup difficulty is rated hard, with roughly 1h+ to a first successful run.

Who is agent-farm-cli for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.