@parcha/agentrun 0.4.5 → 0.4.7

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
@@ -24,9 +24,17 @@ pi runs every agent out of the box. The Claude Code and Codex harnesses need the
24
24
  one is missing, AgentRun says so with the one command to paste: `npx` with this package, the server and that harness's
25
25
  package at their versions, with `--data` naming the same store.
26
26
 
27
- With no `AGENT_MODEL`, the server runs a current model of the first provider it has a key for, Anthropic, then OpenAI,
28
- then OpenRouter: `ANTHROPIC_API_KEY`, `OPENAI_API_KEY` or `OPENROUTER_API_KEY` in your environment, or a key saved in
29
- the console's Settings → Model keys, which counts from the save on. Other commands are the server's:
27
+ It needs no model key to start. In the console, set a password, then Continue with ChatGPT (Settings → Model keys, or
28
+ the first screen), then run your first agent: Codex and pi agents run on your ChatGPT plan, and the sign-in finishes
29
+ by itself on this computer. Claude Code, OpenCode, Jev decisions and paid tools need their own keys. Eligible usage in
30
+ this app uses your ChatGPT plan. Manage usage in your ChatGPT settings. The sign-in is yours: don't let other people run
31
+ agents on this server with it.
32
+
33
+ Or add a model key. With no `AGENT_MODEL`, the server runs a current model of the first provider it has a key for,
34
+ Anthropic, then OpenAI, then OpenRouter: `ANTHROPIC_API_KEY`, `OPENAI_API_KEY` or `OPENROUTER_API_KEY` in your
35
+ environment, or a key saved in the console's Settings → Model keys, which counts from the save on. Signed in with
36
+ ChatGPT, pi and Codex run on the plan's model by default, key or not, unless `AGENT_MODEL` names another. Other
37
+ commands are the server's:
30
38
  `npx @parcha/agentrun import` brings in your local Claude Code, Codex and pi sessions, and
31
39
  `npx @parcha/agentrun reset-password` clears the console's password. `--data DIR` and `--port N` change where it keeps
32
40
  its data and the port it takes.
package/lib/cli.mjs CHANGED
@@ -11,10 +11,10 @@ import { COMMANDS, SECRET_ROUTES } from "./commands.generated.mjs";
11
11
  import { ALL, FLAGS, MAX_PAGES, REQUEST_MS, WAIT, followTimeline, timerMs, waitRun } from "./follow.mjs";
12
12
  import { SECRETS, guarded, refusalExit } from "./login.mjs";
13
13
  import { SKILL_INSTALL } from "./skill.mjs";
14
- import { TEMPLATE_EVAL, TEMPLATE_VALIDATE } from "./template.mjs";
14
+ import { TEMPLATE_EVAL, TEMPLATE_INSTALL, TEMPLATE_VALIDATE } from "./template.mjs";
15
15
 
16
16
  /** The hand-written commands that run as they are given (`run`), beside the table's. */
17
- const LOCAL = [...SECRETS, SKILL_INSTALL, TEMPLATE_VALIDATE, TEMPLATE_EVAL];
17
+ const LOCAL = [...SECRETS, SKILL_INSTALL, TEMPLATE_VALIDATE, TEMPLATE_EVAL, TEMPLATE_INSTALL];
18
18
  export const NOUNS = new Set(["api", "help", ...[...COMMANDS, ...LOCAL].map((entry) => entry.command[0])]);
19
19
  const DEFAULT_BASE_URL = "http://127.0.0.1:7340/v2"; // key-gate: loopback-rule the default address of the server started on this machine
20
20
  const START = "start it with `npx @parcha/agentrun`, or pass --base-url (or set AGENTRUN_BASE_URL) to the address the server printed";