Manual · v0.1.3

Valkyria documentation.

Installation, slash commands, shell & package tools, Pinecone cloud RAG, and client-side key encryption.

[01]

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.

shell
valkyria setup
valkyria chat
note:The package is named valkyria-cli. Both valkyria and vk run the same program. Use valkyria --help to explore terminal commands and /help inside a chat.
[02]

Install 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
uv tool install --python 3.12 valkyria-cli
pipx
pipx install --python python3.12 valkyria-cli
pip · Linux / macOS
python3.12 -m venv .venv
source .venv/bin/activate
python -m pip install valkyria-cli
pip · Windows PowerShell
py -3.12 -m venv .venv
.\.venv\Scripts\Activate.ps1
python -m pip install valkyria-cli
note:Check with valkyria --version. If your shell cannot find the command after installation, run uv tool update-shell or pipx ensurepath for your installer, then reopen the terminal.
[03]

Update 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
uv tool upgrade valkyria-cli
pipx
pipx upgrade valkyria-cli
pip
python -m pip install --upgrade valkyria-cli
note:Testing changes from a source checkout? Run uv tool install --force . in the directory containing pyproject.toml to replace your global uv installation with that copy.
[04]

Sign 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.

shell
valkyria login
valkyria auth status
[05]

Add, 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.

shell
valkyria keys add groq
valkyria keys list
valkyria model refresh --provider groq
note:Remove a saved key with valkyria keys remove groq and confirm with your vault password. To revoke the credential itself, revoke it in the provider dashboard. If you use cloud sync, accept the sync prompt after changing the vault or run valkyria keys sync.
[06]

Choose 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.

shell
valkyria model refresh
valkyria model list
[07]

Save, 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.

shell
valkyria chat --new
valkyria session list
note:Use valkyria chat --session SESSION_ID to resume, valkyria session fork SESSION_ID to branch, or valkyria session delete SESSION_ID to delete that saved chat. Replace SESSION_ID with the ID from the list.
[08]

Index 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.

shell
valkyria rag status
valkyria rag index README.md
valkyria rag search "installation"
note:In chat, /search queries indexed workspace passages and /web searches the public web. Use valkyria rag clear to delete vectors in the current workspace namespace.
[09]

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.

note:When you sync, the encrypted vault is uploaded to your Firestore account. With no local vault, valkyria keys sync attempts to download the remote copy. Pinecone stores indexed vectors, passage excerpts, relative paths and line numbers. Hosted models receive the conversation and any file excerpts attached or retrieved for that request.
[10]

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.

chat
/run pytest -q
/pkg pip install httpx
[11]

Review 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.

chat
/auto off
/plan update the setup instructions in README.md
[12]

Command 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.

CommandAction
/helpList 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
/budgetShow context window accounting
/compact [keep]Summarize older turns and trim context window
/new [title]Create a new chat session with a fresh context window
/clearClear screen and reset conversation context
/sessionShow active session metadata
/workspaceShow 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
/exitExit chat
/run <command>Execute a shell command inside the workspace
/pkg [manager] <action> [packages…]Install, uninstall, or list packages (pip, npm, brew, cargo, apt …)
[13]

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
uv tool uninstall valkyria-cli
pipx
pipx uninstall valkyria-cli
pip · active environment
python -m pip uninstall valkyria-cli
note:Use valkyria logout to sign out locally. For permanent account deletion, run valkyria auth delete and review the confirmation. Check the terminal for any warning that synced vault deletion could not be verified. Add --purge-local to remove the local key vault too. Clear each workspace index with valkyria rag clear if needed. For complete local removal, back up anything you need, then remove the Valkyria configuration, data and cache directories described above.
[14]

Troubleshooting

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.