Clients
CLI
Install slm-cli and chat, generate Anchor programs, review code from your terminal.
Install
Bash
pip install slm-cli # coming soon — install from source for now:
# git clone https://github.com/e-man07/slm && cd slm/slm-cli && pip install -e .Requires Python 3.10+. See the source for dev install.
Configure
Bash
slm config --api-key slm_YOUR_KEY
slm config --showAPI key is stored in the OS keyring (macOS Keychain, Windows Credential Locker, GNOME keyring/KWallet). Non-secret config lives in ~/.slm/config.toml.
Commands
Bash
slm chat "How do I create a PDA?" # one-shot
slm chat # interactive REPL
slm gen "token vesting with linear unlock" -o src/lib.rs
slm review src/lib.rs
slm migrate src/lib.rs --write # migrate in place
slm tests src/lib.rs > tests/program.ts
slm explain --tx 5U3...abc
slm explain --error 0x1771Scripting
Use --json for machine-readable output:
Bash
slm chat --json "explain Solana rent" | jq '.content'Shell completion
Bash
slm --install-completion bash # or zsh | fish