Own your keys. Command your terminal.
Plan, search, and ship from your terminal. Multi-model routing, semantic codebase memory, encrypted BYOK, and approval-gated edits.
Terminal
Fast Python REPL with `/` slash completion, `@` file context, and sandboxed `/run` & `/pkg`.
Multi-Model
Route tasks across Groq, Gemini, and NVIDIA on your own keys. Inspect budgets before switching.
Safety Gate
Every file edit, shell command, and package install shows a diff and waits for your explicit yes.
from valkyria import vault keys = vault.unlock(pw) hits = rag.query("auth") # 3 citations · local
Vault & RAG
Client-side Argon2id + AES-256-GCM key encryption paired with Pinecone semantic code retrieval.
What is Valkyria?
Valkyria is a terminal-first AI workspace built for developers who refuse black-box tooling. Connect your own API keys, inspect every action before it runs, and keep your credentials encrypted on your own machine. Read the manual.
Bring your own keys
Use your own OpenAI, Anthropic, Google Gemini, Groq, Mistral AI, DeepSeek, Cohere, Moonshot AI (Kimi), and NVIDIA NIM keys. Switch models anytime with /model without lock-in.
Sandboxed /run & /pkg
Execute shell commands and install packages via pip, uv, npm, cargo, brew, or apt behind a denylist & approval gate.
Pinecone Cloud RAG
Index your codebase with /index and retrieve exact semantic chunks with file citations via /search.
AES-256-GCM key vault
Keys are encrypted client-side with Argon2id + AES-256-GCM before optional Firebase ciphertext sync.
Durable JSON sessions
Every conversation persists locally as JSON. Open fresh context with /new, inspect /budget, or /compact older turns.
Explicit approval gate
Every file write, edit, deletion, or shell command previews its diff and waits for [Y/n/a] unless /auto is on.
Flight path
Four moves from prompt to verified output.
$ valkyria login Opened browser sign-in via Firebase... Signed in as sam@studio.dev Vault unlocked (AES-256-GCM) Providers ready: 9 supported
Get started
Install the Python CLI, sign in through your browser, and add your own provider keys. Nothing runs without your say-so.
Install
Requires Python 3.12+. Install globally with pipx or uv.
Log in & unlock vault
Authenticates via browser callback and encrypts keys locally with AES-256-GCM.
Launch in your project
Index files with /index, switch models with /model, or run commands with /run & /pkg.
Coming soon
Expanding the flight deck.
$ valkyria mcp add postgres --scope workspaceBring your own keys
Built on proven providers and open tools. Bring your own keys and pay providers directly—zero markup, zero key custody.
Changelog
Development updates and release history.
v0.2.1
v0.2.1
Live activity in chat & updated CLI docs
- Shows which model is handling a request before its first token arrives, with clean renderer teardown on interruption.
- Tool calls display their live target (file paths, search queries, commands, or packages) while executing, and workspace attachments / Pinecone lookups appear as they start.
- Expanded install, update, uninstall, key management, and storage cleanup documentation in /docs.
v0.2.0
v0.2.0
Six new AI providers & runtime reliability
- Integrated
OpenAI,Anthropic,Mistral AI,DeepSeek,Cohere, andMoonshot AI (Kimi)with live catalog discovery, streaming, and vault key support. - Added hosted RAG embedding support for OpenAI, Mistral AI, and Cohere alongside Gemini and NVIDIA NIM.
- Fixed
Event loop is closedasync client teardown after turns, connectedvalkyria loginto first-run setup, and deployed Firestore vault sync rules.
v0.1.3
v0.1.3
Sandboxed /run, /pkg & Valkyria rebrand
- Added
run_command(/run) with workspace cwd lock, 60s timeout, and destructive command denylist. - Added
pkg_install(/pkg) supporting pip, pip3, uv, pipx, npm, yarn, pnpm, cargo, brew, apt, and dnf. - Propagated
/autoruntime approvals and moved Firebase API configuration into.env.
Questions
Models are hosted by your providers and RAG vectors live in your Pinecone cloud index, so chatting and RAG search need internet. Your local files and JSON sessions stay on your machine.
Open source
Valkyria CLI is MIT-licensed and built in the open. Inspect the security gate, audit the AES-256-GCM vault, or extend the tool registry yourself.