Install
The polka command line builds, runs and deploys agents. It is built from the ADK's repository.
What you need
- Rust, stable, through rustup.
- On Linux, bubblewrap, with user namespaces allowed. The local sandbox confines an agent's commands with it: the machine read-only, no network. On macOS the sandbox uses Seatbelt, which is already there.
- Access to the ADK repository,
sujancode/polka-adk. It is private for now: ask for an invitation.
Build the CLI
git clone https://github.com/sujancode/polka-adk.git
cd polka-adk
cargo install --path crates/cli
polka --versionLog in
polka loginThis opens the browser to sign in to app.polkadots.sh and keeps the
login on this machine. On a machine without a browser, use polka login --no-browser and enter
the code it prints, or log in with an API key from the Console: polka login --key polka_live_….
Check it:
polka whoami
polka model try "Say hello in five words."model try streams an answer from the platform's model gateway with your login. If that works,
everything an agent needs to reach a model works too.
For deploying to the edge
Deploying builds the agent to WebAssembly, which needs two more things:
rustup target add wasm32-unknown-unknown
cargo install worker-build