Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

VierrataleAI

Intelligent terminal assistant that runs AI models locally and in the cloud.

Install

pip install vierrataleai

The first launch detects and, if needed, installs and starts the local engine (Cortex - "secretly" Ollama under the hood), then pulls the model you use.

Usage

vierrataleai                          # Start chat (auto-detect provider)
vierrataleai --provider cortex        # Use local models
vierrataleai --provider openai        # Use cloud models (OpenAI)
vierrataleai --provider anthropic     # Use cloud models (Claude)
vierrataleai --provider gemini        # Use cloud models (Gemini)
vierrataleai --model VRTL-6.pro   # Use specific model

# Or run as module
python -m vierrataleai

Models

Local models run through the Cortex engine:

Model Backend
VRTL-1.lite qwen3:0.6b
VRTL-2.fast gemma3:1b
VRTL-3.small llama3.2:1b
VRTL-4.balanced qwen2.5:1.5b
VRTL-5.plus qwen3:1.7b
VRTL-6.pro qwen2.5:3b

Cloud models are available when the matching provider + API key is configured:

Model Backend
VRTL-7.cloud-mini gpt-4o-mini (OpenAI)
VRTL-8.cloud gpt-4o (OpenAI)
VRTL-9.cloud-fast claude-3-5-haiku-20241022 (Anthropic)
VRTL-10.cloud-pro claude-sonnet-4-20250514 (Anthropic)
VRTL-11.cloud-lite gemini-2.0-flash (Gemini)
VRTL-12.cloud-plus gemini-1.5-pro (Gemini)

Legacy vierratale-* model names (e.g. vierratale-fast, vierratale-cloud) still work and are stored as VRTL names.

Commands

  • /help - Show commands
  • /model [name] - Switch model
  • /provider [name] - Switch provider
  • /models - List available models
  • /system [text] - Set a custom system prompt / persona
  • /search <query> - Search the web and summarize with AI
  • /fetch <url> - Open a link and summarize its content
  • /log [n|path] - Show the last n log entries (default 30) or the log file path
  • /clear - Clear screen
  • /new - Start a new conversation (clear memory)
  • /quit - Exit

Smart Search

Asking a question (Who/What/When/Where/Why/How...?) automatically searches the web and summarizes the results with AI. Bare mentions of specific topics also trigger a search — e.g. timun mas from indonesia, the legend of roro jonggrang. For example:

> Who is Cristiano Ronaldo?
> timun mas from indonesia

triggers a live web search and answers from the results. If no web results come back, the AI answers from its own knowledge instead of going quiet. Use /search <query> to force a search explicitly.

Story requests about any subject work the same way — no matter how they're phrased (a story about X, the legend of X, tell me about X, narrate the tale of X, write X into a txt file). The subject is pulled out of the sentence, searched first, and the reply is saved to a <subject>.txt file. A generic tell me a story (no subject) is told directly from the model — and is also saved to a .txt file.

Greetings (hi, hello, hey, good morning, ...) are answered instantly with a short fixed reply — they never reach the model.

Writing Files

Ask the AI to create code, configs, scripts, web pages, or a whole project. When it responds, it lists each file with a FILE: <path> header followed by a code fence (and FOLDER: <path> for empty folders) — just running in the chat writes them to your disk in the current working directory. Any file type is supported, including JSON config files and HTML pages. Nested folders are created automatically, existing files are skipped unless you confirm to overwrite, and nothing is ever written outside the working directory.

If the AI ever answers with the code but forgets the FILE: header (or writes an HTML page without a fence), the assistant rescues it: any FILE: <path> line in the reply is honored even without a fence, otherwise the request is used to infer a filename and the code block is saved anyway. Filename inference covers many formats, not just web pages:

Request contains… Saved as
html / webpage / website / page index.html
css style.css
python / py script.py
flask / django / fastapi / streamlit / app app.py
javascript / js / script script.js
typescript / ts script.ts
bash / zsh / shell script.sh
json / yaml / yml / csv / sql output.json / .yml / .csv / .sql

When the request has no hint at all, the fence language in the reply picks the name (python → `script.py`, css → style.css, …). Saving also kicks in whenever the reply itself contains a FILE:/FOLDER: line, or when a reply is basically just one substantial code block, even if the request phrasing wasn't matched.

For file requests, a short format instruction is silently attached to your message so the model emits complete FILE: blocks with closed fences. And if the model ever answers a file request without any code (free-style prose, interrupted before a fence), nothing is saved and you get a notice telling you to ask again — a .py file full of chatter is never created.

Example of what the AI emits:

FILE: config.json
```json
{
  "name": "my-app",
  "port": 3000
}

FILE: index.html

<!doctype html>
<html><body>Hello</body></html>

FILE: src/hello.py

print('Hello VierrataleAI')

Chat UI

The chat runs in a clean, minimal full-screen interface: your turns are labelled You and the assistant's AI, with plain wrapped text in between. Code blocks are the exception — they render inside a green bordered box with their language tag (╭─ html ─╮), so files stand out at a glance. The latest reply stays pinned to the bottom of the terminal while it streams in (no screen flashing), and internal search/fetch context stays hidden.

Automatic Logging

Everything that happens in a session is written automatically to a per-day log file in ~/.config/vierrataleai/logs/ (e.g. vierrataleai-20260101.log): app/session start, every user message, every AI reply, every file write or skip, and any errors — with a timestamp. The logs are plain text and safe to grep. To inspect them from inside the chat:

/log          # show the last 30 entries
/log 100      # show the last 100 entries
/log path     # print the log file path

Conversation Memory

Your conversation is saved automatically and restored on the next launch, so you can continue where you left off. Use /new to start fresh.

Configuration

Config file: ~/.config/vierrataleai/config.json

Environment variables:

  • VIERRATALE_PROVIDER - Default provider (auto/cortex/openai/anthropic/gemini)
  • VIERRATALE_MODEL - Default model
  • OPENAI_API_KEY - OpenAI API key (openai provider)
  • ANTHROPIC_API_KEY - Anthropic API key (anthropic provider)
  • GEMINI_API_KEY - Google AI API key (gemini provider)

Build Standalone Binary

./build.sh
# Output: dist/vierrataleai

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vierrataleai-0.1.0b10.tar.gz (109.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vierrataleai-0.1.0b10-py3-none-any.whl (99.1 kB view details)

Uploaded Python 3

File details

Details for the file vierrataleai-0.1.0b10.tar.gz.

File metadata

  • Download URL: vierrataleai-0.1.0b10.tar.gz
  • Upload date:
  • Size: 109.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.6

File hashes

Hashes for vierrataleai-0.1.0b10.tar.gz
Algorithm Hash digest
SHA256 fdcf8c92305d64d0c797b21b271466c114274a8648914fd8d6d627877a2d5663
MD5 52485d2fb51ecb942c0c7bfb18118a6f
BLAKE2b-256 cd5b4b579f267fe347dcdbcc598c7c5584c71b0007efc7501192b2b0efe83cff

See more details on using hashes here.

File details

Details for the file vierrataleai-0.1.0b10-py3-none-any.whl.

File metadata

File hashes

Hashes for vierrataleai-0.1.0b10-py3-none-any.whl
Algorithm Hash digest
SHA256 0b1bb4f7dc2de6a9920e84eeeb8cacbd3e63cc07d4a9ad6d95ce9a62e51be0b0
MD5 d30d23842ca10b37004e30465639f66b
BLAKE2b-256 473489ec6ae16f75db71486bf0f4deaede9cd60a26fdeea67b1b705a95df876d

See more details on using hashes here.

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