CLI
Every command takes --help for its full options.
| Command |
What it does |
polka login |
log this machine in through the browser, or with an API key |
polka logout |
end this machine's login and forget it |
polka whoami |
who this machine is logged in as |
polka run |
give an agent a task in a folder |
polka chat |
build an agent's package, start it here and talk to it |
polka deploy |
deploy an agent to the edge, or to a host of your own |
polka host |
serve an agent's turns on this machine for the platform |
polka sandbox serve |
serve sandboxes over HTTP for others to run commands in |
polka model try |
stream a model's answer to a prompt |
| Option |
|
--key <key> |
keep an API key instead of a browser login |
--api <url> |
the platform's address (POLKA_API; default https://app.polkadots.sh) |
--no-browser |
print the page to open and read the code it shows |
polka run [options] <task>
An agent with bash, read, write and edit, confined to a folder, works until it answers.
| Option |
|
--dir <dir> |
the folder it works in (this one if left out) |
--model <id> |
the model (the platform's first if left out) |
--steps <n> |
at most this many model calls (default 25) |
--unconfined |
run its commands without bubblewrap: they can touch this whole machine and its network |
--context <tokens> |
the model's context window; compaction starts at three quarters of it |
--reasoning <level> |
how much the model thinks: off, low, medium, high, max, or a budget in tokens |
--summarize |
compact by having the model summarize the work so far, instead of dropping old tool results |
--subagents |
let it hand pieces of the task to helpers, several at once |
polka chat [options] <dir>
| Option |
|
--workspace <dir> |
the folder it is given to work in (this one if left out) |
--model <id> |
the model, instead of the one the agent chose |
--unconfined |
run its commands without bubblewrap |
--resume |
carry on the agent's last conversation |
--session <id> |
carry on, or start, the conversation with this id |
--fork <id> |
start a new conversation from a copy of this one |
--at <n> |
with --fork, copy only its first n messages |
polka deploy [options] [dir]
| Option |
|
--env <name> |
the environment it goes live in (made on its first deploy) |
--name <name> |
the agent's name (the folder's if left out) |
--greeting <text> |
what it says first in a conversation |
--keep <folder> |
a folder of its sandbox kept between a conversation's tasks; repeat for more |
--host <url> |
run it on a host of your own (https://…, where polka host serves it); nothing is built |
polka host [options] [dir]
| Option |
|
--address <addr> |
where to listen (default 127.0.0.1:8080); put it behind TLS |
--root <dir> |
the folder each task gets a folder of its own in (the package's .polka/host if left out) |
--unconfined |
run commands without bubblewrap: only on a machine that is itself the sandbox |
polka sandbox serve --root <dir> [options]
| Option |
|
--root <dir> |
the folder each sandbox gets a folder of its own in |
--address <addr> |
where to listen (default 127.0.0.1:8091) |
--unconfined |
run commands without confinement: only on a machine that is itself the sandbox |
POLKA_SANDBOX_TOKEN guards it.
polka model try [options] <prompt>
| Option |
|
--model <id> |
the model (the platform's first if left out) |
--system <text> |
a system prompt |
Edit this page on GitHub