agkit runs chat turns across local agent CLIs. Reuse one session ID when
switching providers or models.
---
config:
flowchart:
nodeSpacing: 24
rankSpacing: 32
---
flowchart LR
accTitle: agkit chat flow
accDescr: agkit uses one session ID across local agent CLIs and stores chat history in SQLite.
Client("Terminal or app") <-->|Text / JSONL| CLI
subgraph Kit["<span style='font-size:24px;font-weight:700;line-height:1.25'>agkit</span>"]
CLI("CLI interface") <--> Sessions("Session manager<br/>One agkit session ID")
Sessions <--> Adapters("Provider adapters")
Sessions <--> Store[("Local SQLite<br/>Chat history")]
end
Adapters <-->|One per turn| Agents
subgraph Agents["Local agent CLIs"]
direction TB
Codex("Codex") ~~~ OpenCode("OpenCode") ~~~ Agy("Antigravity (agy)") ~~~ More("… more via Rust library")
end
classDef entry fill:#E0F2FE,stroke:#0284C7,color:#0C4A6E
classDef layer fill:#EFF6FF,stroke:#60A5FA,color:#172554
classDef session fill:#1E3A8A,stroke:#60A5FA,color:#FFFFFF,stroke-width:2px
classDef storage fill:#ECFDF5,stroke:#10B981,color:#064E3B
classDef provider fill:#F5F3FF,stroke:#A78BFA,color:#4C1D95
classDef more fill:#F8FAFC,stroke:#94A3B8,stroke-dasharray:4 3,color:#334155
class Client entry
class CLI,Adapters layer
class Sessions session
class Store storage
class Codex,OpenCode,Agy provider
class More more
style Kit fill:none,stroke:#94A3B8,stroke-width:1px
style Agents fill:none,stroke:#A78BFA,stroke-width:1px
linkStyle 0,1,2,3,4 stroke:#64748B,stroke-width:1.5px
agkit is published in the project's Homebrew tap.
Use the fully qualified formula name to install it.
brew install 2noScript/agent-kit/agkitTo find the formula with brew search before installing, add the tap and trust
the agkit formula.
brew tap 2noScript/agent-kit
brew trust --formula 2noScript/agent-kit/agkit
brew search 2noScript/agent-kit/agkitDownload the Linux x64 or ARM64 .tar.gz and SHA256SUMS from the
latest release.
Verify the archive with sha256sum --ignore-missing -c SHA256SUMS, then extract
it and run the following in the extracted directory.
install -Dm755 agkit "$HOME/.local/bin/agkit"Add $HOME/.local/bin to your PATH if needed.
Download the Windows x64 .zip and SHA256SUMS from the
latest release.
Compare the hash from Get-FileHash -Algorithm SHA256 <zip-file> with
SHA256SUMS, then extract the archive and open PowerShell in that directory.
.\agkit.exe --versionAdd the extracted directory to your PATH to run agkit from any terminal.
The WinGet submission
is pending. Once the package appears in the winget source, install it with:
winget install --id 2noScript.Agkit --exact --source wingetInstall Rust and your provider CLI, then sign in to the provider. Run these
commands from the repository root. agkit.sh rebuilds the debug binary when
the source changes.
./agkit.sh -v
./agkit.sh chat --help
./agkit.sh chat -p codex -m "<model-id>" "Remember cedar."| Logo | Name | ID |
|---|---|---|
| Claude Code | claude-code |
|
| Codex | codex |
|
| Antigravity | antigravity |
|
| OpenCode | opencode |
|
| Gemini CLI | gemini-cli |
|
| Grok CLI | grok-cli |
| Logo | Name | ID |
|---|---|---|
| Custom OpenAI-Compatible | custom |
Output is readable text by default. Use --json to receive status, code,
message, and data. Chat accepts one JSON request on stdin and returns one
response per line.
printf '%s\n' '{"providerId":"codex","prompt":"Remember cedar."}' | agkit --json chatUse data.sessionId from the completed event in later requests. See the
CLI API reference for all flags, events, and exit codes.
With Rust installed, run the following from the repository root.
cargo build --release --locked --bin agkit
./target/release/agkit --helpDual-licensed under MIT or Apache-2.0.