Optionalagentpi's global directory (auth.json, models.json, settings.json, extensions, skills). Default: ~/.pi/agent.
OptionalallowLet the model runtime refresh model catalogs over the network when it is created. Default: false.
OptionalapiAPI keys by provider id, e.g. anthropic: "${ env.MY_KEY }". Empty values are ignored.
OptionalappendAppended to the system prompt.
Optionalcodemodepi's codemode tool: the model writes JavaScript that calls tools in a sandbox. only hides the tools codemode can call. Default: off.
OptionalcwdWorking directory of sessions: tools act here and project resources are found here. Default: the process directory.
OptionaldiscoverLoad extensions, skills, prompt templates and AGENTS.md from cwd and agentDir as the pi CLI does. Default: true.
OptionalexcludeOptionalmcppi's MCP client: the servers of mcp.json (agentDir, and the project once trusted) plus servers.
Optionalmodel<provider>/<model id>. Default: pi's settings, then the first model with credentials.
OptionalpersistWrite sessions as JSONL files where the pi CLI keeps them (pi --resume lists them). Default: false.
OptionalsystemReplaces pi's system prompt.
OptionalthinkingOptionaltoolsAllowlist of tool names; * matches any characters. Default: read, bash, edit, write and extension tools.
Optionaltoolpi's tool_search tool, which finds tools that are not declared to the model. Default: false.
cell.ai.codingAgent. Names follow the options of pi'screateAgentSession().