Valkyria documentation.
Installation, slash commands, shell & package tools, Pinecone cloud RAG, and client-side key encryption.
Your first chat
Install the CLI using one of the methods below. In your project directory, run setup to create a vault, enter a model provider key and select a chat model. Start a chat and type a question. Use /exit to return to your shell.
valkyria setup
valkyria chatInstall Valkyria
Choose one installation method. Valkyria requires Python 3.12 or newer. uv and pipx install the command in an isolated environment accessible from your shell. With pip, activate the same virtual environment each time you use the CLI.
uv tool install --python 3.12 valkyria-clipipx install --python python3.12 valkyria-clipython3.12 -m venv .venv
source .venv/bin/activate
python -m pip install valkyria-clipy -3.12 -m venv .venv
.\.venv\Scripts\Activate.ps1
python -m pip install valkyria-cliUpdate your installation
Use the manager you installed with. These commands install the latest available package release. For pip, activate the original virtual environment first. Restart any running chat to load the updated code.
uv tool upgrade valkyria-clipipx upgrade valkyria-clipython -m pip install --upgrade valkyria-cliSign in and switch accounts
Run valkyria login and finish Google sign-in in the browser it opens. Return to the terminal and follow any setup prompts. Sign-in enables encrypted vault sync. To connect a different account, run valkyria auth switch.
valkyria login
valkyria auth statusAdd, replace, remove and sync keys
You can connect another provider at any time. For example, run the commands below to enter a Groq key at the hidden prompt, check its masked entry and refresh the models available to that key. To replace the key, run the add command again for the same provider. Run valkyria keys add by itself to see the service list.
valkyria keys add groq
valkyria keys list
valkyria model refresh --provider groqChoose a model
Run valkyria model list to inspect the catalog. In chat, /model pick lets you select a model interactively. Use valkyria model set chat MODEL_ID in the shell to set a default, replacing MODEL_ID with the provider/model ID shown in your catalog.
valkyria model refresh
valkyria model listSave, resume and delete chats
Starting chat resumes the latest session for the workspace. Use --new for a fresh conversation. Copy a session ID from the list to inspect, resume, fork or delete it. In chat, /budget shows context usage and /compact reduces the older history carried into subsequent requests.
valkyria chat --new
valkyria session listIndex and search workspace files
RAG retrieves passages from files you have indexed. Set PINECONE_API_KEY in the environment or an untracked workspace .env file to connect Pinecone. Set PINECONE_INDEX in the same place to choose the index. Check status first, index a file or folder, then search for a phrase. Replace README.md with an existing path in your workspace.
valkyria rag status
valkyria rag index README.md
valkyria rag search "installation"Where your data goes
By default, ~/.valkyria/vault.enc holds provider keys encrypted with AES-256-GCM using a key derived from your master password with Argon2id. auth.json stores sign-in tokens and config.json holds preferences. Sessions and checkpoints are JSON files under data/sessions and data/checkpoints. The model catalog is cached under cache. XDG_CONFIG_HOME, XDG_DATA_HOME and XDG_CACHE_HOME can change these locations.
Run commands and manage project packages
Inside chat, /run executes a shell command with the workspace as its working directory. /pkg invokes a package manager for the project. For example, the first command below runs the project tests and the second installs httpx into the Python environment used by pip.
/run pytest -q
/pkg pip install httpxReview agent actions
Use /plan followed by a goal to review the proposed steps. In an interactive session with automatic approval disabled, review requested changes before allowing them. Check file paths and command arguments. Shell commands run with the permissions of the operating system user.
/auto off
/plan update the setup instructions in README.mdCommand reference
Type the commands below at the chat prompt. For shell commands, use valkyria --help or a group such as valkyria session --help to list its actions, arguments and options.
| Command | Action |
|---|---|
| /help | List available commands |
| /plan <goal> | Plan, approve, execute, and evaluate via LangGraph |
| /model [<provider>|ls|pick|rf|<id>] | Inspect, filter by provider, or switch models anytime |
| /budget | Show context window accounting |
| /compact [keep] | Summarize older turns and trim context window |
| /new [title] | Create a new chat session with a fresh context window |
| /clear | Clear screen and reset conversation context |
| /session | Show active session metadata |
| /workspace | Show workspace root and file count |
| /read <path> [start] [end] | Read a file inside workspace scope |
| /index [path] | Index workspace files into Pinecone DB |
| /search <query> | Search Pinecone workspace index with citations |
| /rag [on|off|status] | Configure automatic Pinecone RAG context injection |
| /web <query> | Search the live web with DuckDuckGo via LangChain |
| /auto [on|off] | Toggle auto-approval for local file write/edit/delete |
| /account [st|sw|del|in|out] | Inspect, switch, or delete your signed-in account |
| /exit | Exit chat |
| /run <command> | Execute a shell command inside the workspace |
| /pkg [manager] <action> [packages…] | Install, uninstall, or list packages (pip, npm, brew, cargo, apt …) |
Uninstall and delete data
Choose the uninstall command for your original installation. Package removal leaves your saved Valkyria files and cloud data in place. If you also want to delete data, complete the relevant cleanup steps while the CLI is still installed. Delete account data while signed in.
uv tool uninstall valkyria-clipipx uninstall valkyria-clipython -m pip uninstall valkyria-cliTroubleshooting
If sign-in opens a terminal-only instruction page, start a fresh valkyria login from the terminal. If chat has no model, run valkyria keys list, refresh the provider catalog and select an available model. Use valkyria status to locate the active configuration directory and see the workspace and setup state.