Skip to main content

Valkyria CLI — Product and Engineering Specification

Status: Design specification
Version: 0.2.1
Date: 2 December 2026
Product: Terminal-first, multi-model AI agent with local retrieval, controlled system access, and durable sessions


For installation, upgrades, key management, storage and removal, see the user guide and the command reference. The sections below describe the product design.

Package Details

  • Package: valkyria-cli (CLI entrypoints: valkyria, vk)
  • Latest Version: 0.2.1 (Requires Python >=3.12, MIT License)
  • Install / Upgrade: uv tool install valkyria-cli / uv tool upgrade valkyria-cli (or pipx install valkyria-cli / pip install --upgrade valkyria-cli)
  • Supported AI Providers (BYOK): Groq (langchain-groq), Google Gemini (langchain-google-genai), NVIDIA NIM (langchain-nvidia-ai-endpoints), OpenAI (langchain-openai), Anthropic (langchain-anthropic), Mistral AI (langchain-mistralai), DeepSeek (langchain-deepseek), Cohere (langchain-cohere), and Moonshot AI / Kimi (langchain-openai compatible client)
  • Core Stack: Click, Rich, prompt-toolkit, LangGraph, LangChain, Pinecone, DuckDuckGo, Argon2id + AES-256-GCM vault, and Firebase sync

1. Product intent

Valkyria CLI is an AI workspace that runs in a terminal. It answers questions, helps write and edit code, searches local material, creates plans, and carries out approved tasks. Users bring API keys for Groq, Google Gemini, NVIDIA NIM, OpenAI, Anthropic, Mistral AI, DeepSeek, Cohere, and Moonshot AI (Kimi). They choose the exact model used for each kind of work. The product keeps its retrieval index and execution history on the user's machine, while making every transfer to a hosted provider visible.

The defining experience is a precise, fast terminal tool with an editorial voice: concise, confident, occasionally sassy, and always useful. Its interface should feel designed by people who build developer tools, not like a generic AI chat screen. The personality belongs in microcopy and rhythm, never in permission prompts, errors that need diagnosis, or safety decisions.

1.1 Product promises

  1. A user can enter one or more provider keys, see the models available to those keys, and assign models to tasks.
  2. A user can understand what the agent is doing, what data leaves the machine, and what action requires approval.
  3. A session survives process restarts and can be resumed, forked, searched, renamed, compacted, or deleted.
  4. Local documents can be indexed and searched without a cloud vector database.
  5. Files and commands are controlled by scoped permissions, previews, snapshots, limits, and an audit trail.
  6. The CLI remains useful in narrow terminals, over SSH, and without full TUI support.

1.2 Primary users

User Main job Need
Developer Understand and change a codebase Fast context, diffs, command transparency, undo
Technical researcher Search documents and compare evidence Source citations, local indexing, clear provenance
Power user Inspect and automate a workstation Explicit scopes, dry runs, reliable approvals
Multi-model user Assign the right model to each task Live catalog, capabilities, cost visibility where available

1.3 Non-goals for initial release

  • A desktop GUI or web chat product.
  • Autonomous operation without a user-visible approval boundary.
  • Cloud hosting of document indexes or raw local files.
  • Team administration, shared workspaces, or billing aggregation.
  • Running hosted provider models offline.
  • Guaranteeing an undo of arbitrary shell commands or external side effects.

2. Scope and release definitions

MVP: Login, local key vault, provider model discovery, model assignments, chat, sessions, context accounting, read-only local file access, basic local RAG, and a polished terminal interface.

Beta: Plan/build, previewed file edits, scoped approvals, snapshots and undo, safe command execution, package management in isolated environments, hybrid search, session sync, and audit export.

V1: Vision, web search, robust offline behavior, advanced ingestion, security hardening, accessibility and cross-platform certification.

Feature flags must prevent unfinished tools from appearing as executable commands. Help may show a clearly marked upcoming feature only in development builds.

3. Experience principles

  1. The prompt stays the center. One active input line; information appears only when relevant.
  2. Show the receipt. Before a consequential action, show target, scope, exact operation, expected effect, and recovery option.
  3. Disclose model and data path. The active model is always visible; any hosted request involving local content is clear.
  4. Never make confidence decorative. Unknown capability, token limit, or cost is shown as unknown.
  5. Speed is visual. Immediate input response, streamed output, stable layout, and no theatrical loading animation.
  6. Voice is earned. Personality can sharpen a success message; critical prompts remain neutral and exact.

4. User journeys

4.1 First run

  1. valkyria starts and checks local configuration.
  2. If signed out, show valkyria login with a short explanation of the browser handoff.
  3. After login, ask which providers to connect. At least one hosted model provider is required for chat; the user may return later to add more.
  4. Read each API key with masked, no-echo input. Never put a key in a command-line argument or shell history.
  5. Validate credentials and fetch the provider catalog. Show accessible models, grouped by capability. A list result alone does not guarantee invocation rights; a low-cost probe validates the selected model when feasible.
  6. Ask for the user's preferred name, profession, and expertise level. All are optional; do not ask for known languages or tone.
  7. Assign models to chat, code, planner, vision, and summarization. Embeddings are configured separately because they have a different data-transfer implication. Only show models that support the role; allow unassigned for optional roles.
  8. Display a review screen: providers, role assignments, local/hosted embedding mode, sync setting, and a plain-language privacy summary. Save only after confirmation.
  9. Open a new session and show one sample action, not a long tutorial.

4.2 Daily use

  1. Launch in the current directory; that directory is the suggested workspace root.
  2. Resume the last session unless the user requests --new or a specific session.
  3. Type a question or use a slash command. / lists commands; a partial command filters them. @ suggests accessible workspace paths.
  4. The assistant streams output. Tool actions appear as compact cards with status and expandable details.
  5. Approvals pause the agent and accept an explicit choice. The agent resumes from a durable checkpoint.

4.3 Model change

  1. /model shows current session model and role assignments.
  2. /model list shows the models available under configured keys, with provider, capability, status, and known limits.
  3. /model refresh refetches catalogs. /model set code <provider>/<model> changes an assignment. /model use <provider>/<model> overrides the current session's chat model.
  4. Before switching, recalculate context budget. If the existing context will not fit, offer compaction or a new session.
  5. If a selected model is retired, inaccessible, or incompatible, explain the exact failure and offer compatible choices. Never silently substitute a model for a paid or privacy-sensitive request.

5. Interface design specification

5.1 Visual direction

The visual language is editorial terminal: a restrained grid, strong type hierarchy, sharp rules, meaningful whitespace, and one vivid functional accent. It should feel like an excellent developer instrument rather than a dashboard rendered in monospace. No gradients, glass effects, decorative stars, robot imagery, fake code rain, or generic glowing chat bubbles. Do not add emojis or decorative icons. Use text, rules, spacing, and color to convey structure. ASCII or Unicode box characters are allowed when they improve clarity, with a plain-text fallback.

Metadata

Release files for valkyria-cli 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for valkyria-cli 0.2.1
File Size Uploaded Provenance Actions
valkyria_cli-0.2.1.tar.gz 388.1 kB Without provenance Details for valkyria_cli-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for valkyria-cli 0.2.1
File Interpreter ABI Platform Actions
valkyria_cli-0.2.1-py3-none-any.whl Python 3 none any Details for valkyria_cli-0.2.1-py3-none-any.whl

Total release size: 512.6 kB

Release files / valkyria_cli-0.2.1.tar.gz

Download URL valkyria_cli-0.2.1.tar.gz
Size 388.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e0aba32f20e74f34d2b157ba580eababcab99ae6f49f0b1732c7440ad7c33ff7
BLAKE2b-256 checksum
How to use checksums
cfd67caffd4fdbac8fc47ebc934a22b03624ed6d07ae623b881d7860c61ddeaa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.18 {"installer":{"name":"uv","version":"0.11.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / valkyria_cli-0.2.1-py3-none-any.whl

Download URL valkyria_cli-0.2.1-py3-none-any.whl
Size 124.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d55e6c4265744a58cd7d9cfc8eb308aa96d4c6b4ca18d06f589cd8cbaed61122
BLAKE2b-256 checksum
How to use checksums
2ff7b6fec83967cba2144c0320cfb96ae30d1aa76fed2b6ee24d23f7f41009c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.18 {"installer":{"name":"uv","version":"0.11.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for valkyria-cli 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page