@certalis/agent-smith 0.1.14 → 0.1.16

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 CHANGED
@@ -97,7 +97,8 @@ Device keys allow independent revocation and cannot read management data.
97
97
  This does not add per-client fairness or budgets.
98
98
 
99
99
  Seat owners join through the server's optional `/pool-enroll` page, not its
100
- proxy homepage. Enable the existing email-listed sign-in flow with
100
+ proxy homepage. Allow individual addresses or an exact domain (`*@example.test`)
101
+ in [`enrollment_emails`](docs/configuration.md), then enable the sign-in flow with
101
102
  `AGENT_SMITH_ENROLLMENT_ORIGIN` as described in the
102
103
  [HTTPS deployment guide](docs/https-edge.md#standalone-render-web-service).
103
104
 
@@ -105,8 +106,7 @@ Copy [`https-client.json`](examples/config/https-client.json) into your private
105
106
  Agent Smith config. Put the device key in the owner-only file named by
106
107
  `proxy_key_file`, not in the JSON or a shell profile. `base_url` is the endpoint
107
108
  visible to your machine, not a second pool. The key can spend from the pool, but
108
- cannot administer it. Remote client routing is off by default: set
109
- `client.enabled` to `true` when this machine should use the shared pool.
109
+ cannot administer it. Remote client routing is off by default.
110
110
 
111
111
  An SSH tunnel remains an option for development. Use
112
112
  [`team-client.json`](examples/config/team-client.json) and forward its local port
@@ -116,10 +116,10 @@ to the private server:
116
116
  ssh -N -L 18181:127.0.0.1:8080 agent-smith-pool
117
117
  ```
118
118
 
119
- Then apply the flag with the normal client setup command:
119
+ Then turn on shared-pool use with the shipped command:
120
120
 
121
121
  ```bash
122
- agent-smith install-client
122
+ agent-smith client on
123
123
  ```
124
124
 
125
125
  Open a new terminal and use `claude` or `codex` normally. The wrappers only add
@@ -128,12 +128,21 @@ second proxy. The forwarding key is for inference, not dashboard or management
128
128
  access.
129
129
 
130
130
  Claude sends one device credential in the API-key header to the gateway; it is
131
- not an Anthropic Console key. Claude.ai cloud connectors are not available by default in this
132
- mode; see the [client behavior and limits](docs/https-edge.md#configure-and-prove).
133
-
134
- To switch back to ordinary local Claude Code/Codex, set `client.enabled` to
135
- `false` and run `agent-smith install-client` again. It removes only its wrappers
136
- and marked shell entry; it does not change the real clients or their credentials.
131
+ not an Anthropic Console key. Claude in Chrome and claude.ai cloud connectors are not available by default in this
132
+ mode; `client.keep_claude_login` keeps them on. See the
133
+ [client behavior and limits](docs/https-edge.md#configure-and-prove).
134
+
135
+ Use `agent-smith client off` to use ordinary local Claude Code/Codex again;
136
+ `agent-smith client status` shows the switch and launcher setup. Add `--raw` for
137
+ JSON instead of readable text. These commands work outside any repository.
138
+
139
+ The first `on` installs the launchers (or updates previously generated ones).
140
+ Later switches change only `client.enabled`: each new client process reads the
141
+ current origin, key-file path and flag. Off keeps the launchers installed, reads
142
+ no forwarding key and delegates to the native client without changing its login.
143
+ Restart/resume existing sessions after switching. No proxy restart is needed.
144
+ `install-client` remains the explicit setup/removal command; it is not needed
145
+ between on/off switches.
137
146
 
138
147
  ## Configuration
139
148
 
@@ -153,11 +162,22 @@ Restart agent-smith after changing `providers`, `provider_pools`, `alerts` or
153
162
  | `providers.<name>.base_url` | The upstream URL, for an endpoint compatible with one of the strategies. |
154
163
  | `providers.<name>.models` | The models a provider serves, as `"client model": "provider model"`. A trailing `*` matches a prefix. Without it, the provider serves every model name unchanged. |
155
164
  | `provider_pools.<protocol>` | The ordered providers for `anthropic-messages` or `openai-responses`. Clients reach it at `/v1/pool/<protocol>/*`, and the local wrappers use it automatically. |
156
- | `client` | The Agent Smith origin and forwarding key used by `agent-smith install-client`. It is for this machine only; it does not define providers or a separate pool. |
165
+ | `client` | This machine's shared-pool switch, origin and forwarding-key file. Use `agent-smith client on`, `off` or `status`; it does not define providers or a separate pool. |
157
166
  | `team_routing` | Which subscription accounts may share a pool, and their usage caps. See the [configuration guide](docs/configuration.md#team-routing). |
158
167
  | `alerts` | A Slack webhook or bot token and/or an email address that hear when a seat spends extra usage and when every account is full. A filled value turns its channel on. See [Alerts](docs/configuration.md#alerts). |
159
168
  | `block_when_all_full` | `true` by default: when every account is full, every request is refused until the soonest reset, so none spends extra usage. |
160
169
 
170
+ To use capacity before renewal, enable `team_routing.prefer_expiring_quota`:
171
+ new pinned chats may favor a fresh quota window close to its reset. Existing
172
+ chats and hard caps stay unchanged; this option is off by default. See
173
+ [load balancing](docs/load-balancing.md#team-routing-opt-in).
174
+
175
+ For direct Codex subscription accounts, the private dashboard's **Accounts →
176
+ Usage resets** lists available reset grants and their expiration. Using one
177
+ requires administrator access and an explicit confirmation. No reset is used
178
+ automatically and no paid credits are bought. See the
179
+ [manual reset API](docs/api-http.md#manual-codex-usage-resets-private-administrator-only).
180
+
161
181
  Every key, the environment variables and the HTTP API are in the
162
182
  [configuration guide](docs/configuration.md).
163
183