@hanskristoffer/agentpool 0.35.0 → 0.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -9
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@ T3 Code (or plain Claude Code / Codex) runs the sessions; agentgate sits underne
|
|
|
11
11
|
|
|
12
12
|
## Using the Claude Desktop app
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
You can set up Claude Desktop without a terminal. Open the Agentgate app, choose **Set up this machine**, then go to **Accounts**, which has a **Claude Desktop** panel. Choose one of two ways:
|
|
15
15
|
|
|
16
16
|
- **Switch accounts**: Claude Desktop stays signed in to your full Claude account (Chat, Cowork, Code). Agentgate keeps a saved login per account on this Mac and switches with one click, from the app or the menu bar. Desktop restarts when you switch.
|
|
17
17
|
- **Share automatically**: Claude Desktop's Code tab uses whichever subscription has room and moves on by itself. Desktop runs a separate local profile without Chat.
|
|
@@ -49,7 +49,7 @@ The first `service install` points the Claude Code, Codex and Cursor you already
|
|
|
49
49
|
|
|
50
50
|
You can do every setup step with the CLI. To use the native app, build it with `bun run build:desktop` and open **Agentgate.app**. It connects to `http://127.0.0.1:7878` by default. On a fresh machine, **Set up this machine** installs the bundled CLI in `~/.config/agentgate/bin`, initializes the store, starts a launchd service, and routes your Claude Code, Codex and Cursor the same way. Add that folder to your shell PATH to use the CLI. Closing or removing the app leaves that service and its CLI running.
|
|
51
51
|
|
|
52
|
-
The app has Overview, Accounts, MCP servers, Skills, Projects, Machines, T3 Code, Activity, and Settings screens. Overview lists anything that needs you, such as an account or MCP server to sign in to again, and the sidebar marks the screen where you fix it; `agentgate status` prints the same list. **Settings → Coding tools** routes your own Claude Code and Codex or undoes it, and can generate [separate folders for T3 Code](#or-separate-folders-for-t3-code) instead. The app's service and coding-tool controls apply only to its configured local daemon
|
|
52
|
+
The app has Overview, Accounts, MCP servers, Skills, Projects, Machines, T3 Code, Activity, and Settings screens. Overview lists anything that needs you, such as an account or MCP server to sign in to again, and the sidebar marks the screen where you fix it; `agentgate status` prints the same list. **Settings → Coding tools** routes your own Claude Code and Codex or undoes it, and can generate [separate folders for T3 Code](#or-separate-folders-for-t3-code) instead. The app's service and coding-tool controls apply only to its configured local daemon. Remote setup and services use the CLI on that machine. The one exception is routing: Machines shows whether each machine's own Claude Code and Codex go through agentgate, and its row menu turns that on or off there.
|
|
53
53
|
|
|
54
54
|
## A second machine (e.g. an always-on server)
|
|
55
55
|
|
|
@@ -68,7 +68,9 @@ If agentgate is already installed there, `agentgate join agr1.…` (relay) or `a
|
|
|
68
68
|
|
|
69
69
|
The server now has every account, MCP instance and repo mapping, and takes over token refreshes.
|
|
70
70
|
|
|
71
|
-
To sign every machine in to GitHub, Infisical and
|
|
71
|
+
To sign every machine in to GitHub, Infisical, OpenCode and Antigravity as you, run `agentgate logins share` on the machine where you are signed in, or use **Share** under **Shared logins** on the Machines screen. It shares the `gh` login for github.com, the Infisical CLI login, OpenCode's API keys and the Antigravity CLI (`agy`) login, skipping any this machine doesn't use. Every paired machine, including servers that join later, then runs `gh auth login` and `gh auth setup-git` with that token (so `gh` must be installed there) and gets the same Infisical session. The machine that shared re-reads its logins every ten minutes, so if you log in again there, the others follow. Infisical must keep its login in a file: if it uses the system keychain, run `infisical vault set file` and `infisical login` first. `agentgate logins` and the Machines screen show whether this machine is signed in with each login, and `agentgate logins forget github|infisical` stops sharing; machines already signed in stay signed in.
|
|
72
|
+
|
|
73
|
+
A machine that gets the Antigravity login and has no `agy` installs it with Google's installer (into `~/.local/bin`, without touching your shell profile) and signs it in: in the Keychain on a Mac, in `~/.gemini/antigravity-cli` on a Linux server. A Linux desktop that keeps `agy`'s login in its system keyring is not covered.
|
|
72
74
|
|
|
73
75
|
OpenCode shares only API keys (such as OpenRouter or your own endpoints), which every machine with OpenCode imports with `opencode auth import`; logins that refresh, such as GitHub Copilot, stay on their machine. Providers you defined yourself also need their entry in `~/.config/opencode/opencode.jsonc` on the other machine, which agentgate leaves alone.
|
|
74
76
|
|
|
@@ -93,9 +95,11 @@ T3 Code's default Claude and Codex instances run your own Claude Code and Codex,
|
|
|
93
95
|
|
|
94
96
|
**Cursor** accounts can be added too (`agentgate login cursor`, or **Add account** in the app). Agentgate keeps their logins, shows each account's monthly plan usage, counts their tokens in the overview chart (read from Cursor's usage history every 15 minutes), and syncs the accounts to paired machines. Agent runs are pooled like Claude and Codex: set `CURSOR_API_BASE_URL` to `http://127.0.0.1:<port>/cursor` (the address `agentgate status` prints, with `/cursor` on the end). Other Cursor calls keep the CLI's own login. A machine on an older agentgate stops syncing once a Cursor account exists, until it is updated.
|
|
95
97
|
|
|
98
|
+
**Antigravity** isn't pooled: its models are Google's. The overview chart still counts its tokens, read every five minutes from the conversations the Antigravity CLI (`agy`) and the Antigravity app keep in `~/.gemini`, and shared with your other machines once they all run this version. Conversations from the app's first version are encrypted, so they are read through the app while it is open.
|
|
99
|
+
|
|
96
100
|
### Your own Claude Code and Codex
|
|
97
101
|
|
|
98
|
-
The first `agentgate service install` on a new machine routes them, and `agentgate setup --primary` does it any time. It adds `ANTHROPIC_BASE_URL` to `~/.claude/settings.json` and the agentgate MCP server to `~/.claude.json`, so the Claude Code you already use (and T3's default Claude instance) goes through agentgate while keeping its own login. Where Claude Code has
|
|
102
|
+
The first `agentgate service install` on a new machine routes them, and `agentgate setup --primary` does it any time. It adds `ANTHROPIC_BASE_URL` to `~/.claude/settings.json` and the agentgate MCP server to `~/.claude.json`, so the Claude Code you already use (and T3's default Claude instance) goes through agentgate while keeping its own login. Where Claude Code has no login or its saved login has ended, it also sets a placeholder `ANTHROPIC_AUTH_TOKEN` so model requests can still use the pool. Once you sign in, the daemon removes the placeholder again, because Claude Code turns off your claude.ai connectors while any auth token is set. If your local Claude Code login expires, Accounts shows **Sign in to Claude Code** on that account. It renews this machine's own login; **Sign in again** renews a pool login. From a terminal, run `claude auth login`, or `agentgate accounts claude-code login` to start the same browser flow through the daemon. If the browser shows a code, paste it in the app or send it on stdin to `agentgate accounts claude-code finish`. Start a new thread afterwards. Claude Desktop is not affected: it sets its own API address; see [Claude Desktop](docs/user/claude-desktop.md). For only the MCP servers, use `agentgate setup --mcp`. That, and `setup --primary`, also write `~/.cursor/mcp.json` where Cursor is installed, so Cursor and the Cursor CLI get the same servers, and `~/.gemini/config/mcp_config.json` where the Antigravity CLI (`agy`) has run, for `agy`. If you install either one later, the daemon adds the server within a minute while the MCP servers are on. Claude Code sometimes saves `~/.claude.json` without the agentgate MCP server; while you have it on, the daemon puts it back within a minute, and `agentgate status` says when it did. Remove it with `agentgate setup --mcp off`, not `claude mcp remove`, which the daemon undoes. After agentgate's binary moves or its port changes, the daemon also updates these MCP entries. Start a new session to pick them up. Model requests use the pool. When a client sends its own login, other requests keep it, and it is also the last resort when every pooled account is exhausted. Undo with `agentgate setup --primary off` (the previous base URL is restored, and later settings edits are preserved). It does the same for `~/.codex/config.toml` (or `$CODEX_HOME`): an `agentgate` model provider with `requires_openai_auth = true`, so Codex, the Codex app and T3's default Codex instance send their own ChatGPT login along as the last resort. Where Codex has never been signed in, it writes a placeholder API key to `~/.codex/auth.json`, so `codex login status` and T3 Code see Codex as signed in; undo removes it again. Add `--node <name>` to switch a paired machine from the one you are on. Keep the service installed: while the daemon is down, Claude Code and Codex can't reach their providers.
|
|
99
103
|
|
|
100
104
|
### Or: separate folders for T3 Code
|
|
101
105
|
|
|
@@ -142,7 +146,7 @@ What to expect:
|
|
|
142
146
|
|
|
143
147
|
Turn on **Keep projects in sync** on the T3 Code page, or run `agentgate t3 sync on`, and a GitHub project you add in T3 Code on one machine shows up in T3 Code on your other machines. Machines check every 30 seconds, and opening the T3 Code page checks right away. Each machine needs T3 Code connected as above. A machine that already has a checkout of the repository gets a project for that checkout. Otherwise T3 Code clones it into the clone folder (`agentgate t3 dirs`) with that machine's own GitHub login, so `gh` must be signed in there (`agentgate logins share` does that for every machine). It clones over HTTPS, or over SSH when that machine's existing checkouts use SSH. Removing a project only removes it on that machine, and agentgate never adds it back there. A clone that failed is the exception: remove it in T3 Code and agentgate tries again.
|
|
144
148
|
|
|
145
|
-
The proxy
|
|
149
|
+
The proxy provides quota freshness and reset visibility, searchable **Activity** with request attempts and stream outcomes, bounded retries and local cooldowns, routing strategies and optional session affinity, model discovery/aliases/policies, batch verification, and revision-safe configuration previews. See [the proxy guide](docs/user/proxy.md) for controls, CLI examples, defaults, and upgrade requirements. Codex background usage polling is opt-in pending live endpoint validation.
|
|
146
150
|
|
|
147
151
|
## MCP servers per repo
|
|
148
152
|
|
|
@@ -200,10 +204,10 @@ agentgate skills repo ls | sync | rm owner/team-skills
|
|
|
200
204
|
|
|
201
205
|
Fetching needs Node (`npx`) or Bun (`bunx`) on the daemon's machine, and connected repositories need `git`; other machines get the files through sync. Each node writes skills to `~/.config/agentgate/skills/<name>` and only creates symlinks to them:
|
|
202
206
|
|
|
203
|
-
- **Every session**: the Claude and Codex folders `agentgate setup` writes (`~/.config/agentgate/{claude,codex}/skills`), plus `~/.claude/skills` and `~/.codex/skills` while `setup --primary` is on.
|
|
207
|
+
- **Every session**: the Claude and Codex folders `agentgate setup` writes (`~/.config/agentgate/{claude,codex}/skills`), plus `~/.claude/skills` and `~/.codex/skills` while `setup --primary` is on, and `~/.gemini/config/skills` (the Antigravity CLI) while it has agentgate's MCP server.
|
|
204
208
|
- **One repo**: `.claude/skills/<name>` in the main checkout (Claude Code falls back to it from worktrees) and `.agents/skills/<name>` in the main checkout and every worktree (Codex). The entries are added to `.git/info/exclude`.
|
|
205
209
|
|
|
206
|
-
Cursor also reads `~/.claude/skills`, `~/.codex/skills` and a repo's `.claude/skills` and `.agents/skills`, so it gets the same skills, except from the separate folders `agentgate setup` writes.
|
|
210
|
+
Cursor also reads `~/.claude/skills`, `~/.codex/skills` and a repo's `.claude/skills` and `.agents/skills`, so it gets the same skills, except from the separate folders `agentgate setup` writes. The Antigravity CLI reads a repo's `.agents/skills` too.
|
|
207
211
|
|
|
208
212
|
Claude Code and Codex read skills before a session's MCP servers start, so repo links must exist ahead of time. A repo is known on a machine once it is a project in that machine's T3 Code (with T3 Code connected; this includes clones from [project sync](#keep-projects-in-sync) and handoffs), after its first agentgate session there, or after a scan under Projects → **Add project** → **Find on this machine** (`agentgate project scan <folder>`); from then on its worktrees are watched and new ones are linked with bounded retries and independent periodic repair. Outside T3 Code, register or scan a checkout before launching its first session; watcher timing cannot guarantee first-session readiness. Changes apply to new sessions. Agentgate never replaces a folder it did not create on its own: a name clash is listed under Skills → Skills need attention, where **Use Agentgate's** moves the existing folder to `skill-backups` in agentgate's state folder and links agentgate's copy, and **Keep this one** leaves it and stops linking agentgate's copy there on that machine (`agentgate skills conflicts`, `agentgate skills resolve <path> agentgate|keep`). A folder the repository tracks is never moved. Skills run with your agent's permissions and are copied to every paired machine, so install only sources you trust; the app and `skills add` show the skills.sh audit before installing, and `skills add` asks first (`--yes` installs without asking).
|
|
209
213
|
|
|
@@ -222,7 +226,7 @@ agentgate agents-md # where it is and what it says
|
|
|
222
226
|
agentgate agents-md set --file AGENTS.md # replace it everywhere; an empty file removes it
|
|
223
227
|
```
|
|
224
228
|
|
|
225
|
-
Claude Code reads it as `CLAUDE.md
|
|
229
|
+
Claude Code reads it as `CLAUDE.md`, and Codex and the Antigravity CLI as `AGENTS.md`, linked in the same places as skills for **Every session** (`~/.gemini/config/AGENTS.md` for Antigravity, which also keeps reading your `~/.gemini/GEMINI.md`). Your own `~/.claude/CLAUDE.md`, `~/.codex/AGENTS.md` or `~/.gemini/config/AGENTS.md` is never replaced: it shows up under Skills need attention, where **Use Agentgate's** moves it to `skill-backups` first. If two machines change it at once, the last save wins. Every machine must run a version of agentgate that knows it; until then it is not shared, and the app and the command name the machine to update.
|
|
226
230
|
|
|
227
231
|
## Env files between machines
|
|
228
232
|
|
|
@@ -310,7 +314,7 @@ Run `agentgate --help`. A command refuses an option it does not know, so a missp
|
|
|
310
314
|
|
|
311
315
|
- **Once imported, a login belongs to agentgate.** Don't keep using the original `~/.claude` or `~/.codex` login: its CLI would refresh the token and log agentgate out. `agentgate login` avoids this by using a throwaway directory.
|
|
312
316
|
- **Secrets are stored in plain text** in `~/.config/agentgate/agentgate.db` (mode 0600) and copied to every paired node. Pair only machines you control. The relay only ever sees them encrypted.
|
|
313
|
-
- **Terms of service.** Pool only your own accounts and keep a person driving the sessions; follow the providers
|
|
317
|
+
- **Terms of service.** Pool only your own accounts and keep a person driving the sessions; follow the providers' applicable terms.
|
|
314
318
|
|
|
315
319
|
## Development
|
|
316
320
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hanskristoffer/agentpool",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.36.0",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"agentgate": "bin/agentpool.js"
|
|
23
23
|
},
|
|
24
24
|
"optionalDependencies": {
|
|
25
|
-
"agentpool-darwin-arm64": "0.
|
|
26
|
-
"agentpool-darwin-x64": "0.
|
|
27
|
-
"agentpool-linux-x64": "0.
|
|
28
|
-
"agentpool-linux-arm64": "0.
|
|
25
|
+
"agentpool-darwin-arm64": "0.36.0",
|
|
26
|
+
"agentpool-darwin-x64": "0.36.0",
|
|
27
|
+
"agentpool-linux-x64": "0.36.0",
|
|
28
|
+
"agentpool-linux-arm64": "0.36.0"
|
|
29
29
|
}
|
|
30
30
|
}
|