Skip to content
aivaxlabsPublic

About

A local desktop workspace for AI conversations, tools, and orchestration.

Resources

Stars

12 stars

Watchers

0 watching

Forks

Repository files navigation

Avi logo

Avi

A local desktop workspace for AI conversations, tools, and orchestration.

Website · Source code

Avi is a harness built from scratch which brings model conversations, cross-provider communication, project context, local tools, MCP servers, multi-agent workflows, and autonomous bots into one desktop application. Conversation state is stored locally, while model requests are sent only to the providers you configure.

Avi

Features

  • Light: small footprint compared to other harnesses
    • Low RAM and CPU consumption with multiple agents working
    • Fast startup, launches with the system
    • Few dependencies, easy to maintain
  • Multiple providers: connect multiple AI providers and customize the models you’ll use for each provider.
    • OpenAI Subscription: your ChatGPT subscription – no need for Codex ACP
    • GPT-6 Astra, GPT-6 Sol, GPT-6 Luna, and GPT-6.1 Sol subscription models, in standard and 1M-context versions, including Fast variants
    • X Subscription: sign in with SuperGrok or X Premium through xAI OAuth and use Grok models
    • AIVAX provider: run models with your connected AIVAX account
    • OpenAI-Compatible endpoints: /v1/responses and /v1/chat/completions
    • Model-specific settings: capabilities, reasoning supported
    • Scan models from the provider's /v1/models, and auto fill names, context limits, capabilities, and reasoning efforts from the public AIVAX model catalog
    • Optional hyperparameters: temperature and top-k forwarded to OpenAI-compatible Responses and Chat Completions requests
    • Custom JSON merged into every request body, per provider or per model, and configurable reasoning reuse between turns
    • Model routers: fallback, round-robin, and Fusion routing, where a lead model delegates verifiable milestones to a cheaper sidekick model
  • Extensible:
    • Plugins allow providing providers, themes, auxiliary panels, commands, skills, and many features for Avi.
    • Install trusted .js or .zip extensions from Settings, with controls to enable, disable, replace, and remove packages.
    • Extend Avi with context, MCP servers, chat tools, auxiliary panels, themes, personalities, and model providers.
    • Trusted plugins integrate lifecycle hooks, domain APIs, storage, tools, events, interceptors, provider panels, and bot capabilities.
    • Plugins can declare settings sections rendered by Avi and backed by JSON Schema validation.
    • Plugin packages are validated before installation and loaded atomically at startup.
    • Plugins can add full pages to the Activity Bar.
    • Chrome Integration built-in plugin: agents control your live Chrome tabs through the Avi extension, and controlled tabs are grouped and marked as Avi.
    • Computer Use built-in plugin: agents operate desktop applications with screenshots, mouse, and keyboard, and you stop them with Escape.
    • Browser MCP built-in plugin: agents drive a dedicated browser window with real input, network mocking, cookies, and saved login profiles.
    • Background Processes built-in plugin: run executables with Avi from a dedicated page, with retries, start/stop/restart, enable/disable, and the latest 10 KiB of stdout/stderr per process.
    • Child Processes plugin: start supervised command lines with Avi, with per-process start, stop, and restart controls, retries, and rotating stdout/stderr logs.
  • AIVAX Features: optional integration for persistent memory, advanced web tools, and remote conversation-search reranking.
    • Sign in with AIVAX through OAuth and choose which external capabilities to enable.
    • Agents can search, write, and delete persistent memory with metadata filters; fetch rich web content; and search the web with filters.
    • Semantic search across your threads and conversations.
    • Semantic Grep: index chosen directories and give agents a file_search tool that finds code by meaning.
    • Media generation: agents can generate images and speech.
    • Enhancements: Fast Compress, Fast Name, and Smart Approve for Me, which checks tool calls the agent marked as safe.
    • Refine context: review instructions, skills, and workflows with AIVAX Instruction Refinement.
    • Teach Skill: turn an attached tutorial video into reusable Avi skill instructions.
  • Powerful sub-agents:
    • Sub-agents can actively communicate with the orchestrator and other sub-agents.
    • Define sub-agent levels: model + reasoning per sub-agent invocation level (low, medium, high), lets you choose which models and providers will run different task types
    • Active communication: sub-agents can send messages to the orchestrator and other sub-agents while working, and vice versa.
    • Sub-agent view panel: track sub-agent progress via the side panel.
  • Powerful orchestration:
    • Start, inspect, and converse with parallel threads: agents can view conversations, work folders, tasks, monitor and supervise other agents.
    • Shared semaphore queues by agents to order long tasks among agents.
    • Thread and bot mentions: an agent can deliver a response or Inbox message to another thread or bot by mentioning it.
    • Remote MCP: persistent server that provides orchestration tools to connect to external services (Claude, ChatGPT, etc.)
    • Overview page: opens on Inbox by default with a searchable, status-filtered list of bot conversations, plus ongoing tasks and consumption insights.
  • Remote control (ORPC RPC API):
    • Global WebSocket with administrative handlers plus isolated per-thread WebSockets for bidirectional conversation control and events, over the binary ORPC Draft 2 protocol (avi-orpc-draft2) with multipart UTF-8 JSON operation envelopes, bounded reconstruction, and Avi CHECKSEND SHA-256 integrity validation.
    • Browser clients authenticate with API keys (no URL secrets); discovery reports methods, capabilities, versions, and the model catalog.
    • Multiple labelled API keys with optional expiration, managed independently.
    • Opt-in WAN bridge through the public relay with AIVAX-authenticated tickets and a stable per-install device id; only RPC streams are relayed.
    • Relayed MCP: reach the Remote MCP tools from anywhere through AIVAX Remote.
    • Command endpoint: call Remote MCP tools as plain HTTP requests at /commands/:tool, including quick_chat_invoke for one-off Quick Chat turns.
  • Autonomous bots:
    • Scheduled agents that activate automatically and keep working on their own working folder.
    • Persistent work state: planned, ongoing, blocked, user-review, discarded, and completed work with typed evidence and explicit next steps.
    • Inbox and Activity: bots ask for input through Inbox conversations you answer in place (text, images, files); Activity is the bot's first-person diary of important work.
    • Work queues: ordered round-robin tasks, activation windows, an Activate now queue picker to keep or select the next task, and per-bot snoozing for 1h, 6h, 24h, or until Avi restarts.
    • Priority queue: Inbox replies, approvals, mentions, and prompts from other threads wait in their own queue and never interrupt a running bot.
    • Inbox questionnaires, completion reasons, and optional cross-bot Inbox access.
    • Per-bot tool permissions (Approve for me, Full access, or Read-only), global activation hours, and activation statistics.
    • Bots can spawn sub-agents that report back within the same activation.
    • Attention notifications in the sidebar, with distinct indicators for working, sleeping, active, and disabled bots.
    • Agents can create, update, and manage bots themselves with dedicated bot tools.
  • Scheduled jobs:
    • Run one-off tasks or recurring cron jobs in new threads, each with its own folder, model, reasoning effort, instruction, and permission.
    • Agents can schedule and cancel jobs themselves.
  • Secret Vault:
    • Store credentials encrypted on your device and manage them from their own page.
    • Agents save and use secrets through placeholders, so values never appear in the conversation.
  • MCP client:
    • MCP client scoped globally or per project
    • MCP control panel: view MCP tools, provided instructions
    • Isolation: separate MCP servers by folder or globally
    • Diagnostics: visually check servers that failed or are slow to start
  • Linked-folder workspaces:
    • Combine multiple folders into one workspace under ~/.aivax/workspaces using directory symlinks, with per-workspace context, skills, workflows, and MCP configuration.
    • File search, composer mentions, and Git diffs follow symlinks; linked folders can be renamed, removed, or repaired from the sidebar without touching their targets.
  • Context management and discovery:
    • Advanced discovery of skills, workflows, and instructions
    • Recursive context listing: searches for skills and workflows in the current folder and globally (in $HOME/.agents) without the agent having to search
    • Automatic contextualization: injects AGENTS.md, MEMORY.md, AGENTS.foobar.md... automatically into the agent’s context.
    • Slash commands: invoke workflows with /command and skills via $skill in the composer.
    • Context panel: manage skills, workflows and instructions findable by the agent, with tabs, search, sorting, and templates for new items.
    • Context editor: edit context in a Monaco Markdown editor, and mark items as private to keep them in .agents/.user-private.
    • Minimal or full context discovery, to keep nested sub-skills out of the injected catalog.
    • Composer mentions: type @ to attach project files and directories, enabled MCP servers, or @thread and @memory context.
  • Advanced inference:
    • Very large tool results are truncated and written to files
    • Agent can query large tool outputs with tools.
    • Native tools for file reading, media reading (images, PDFs) and file writing (encoding‐sensitive).
    • Automatic retry for server and provider errors.
    • Queue and steer mechanism for advanced chat.
    • Execution permission level for potentially dangerous tools (read-only, ask for approval, allow for me, full access), with inline approval cards in the conversation.
    • Passive tool groups: rarely used tools stay hidden until the agent enables their group, saving context.
    • Resource limits: cap parallel threads, stop a thread that freezes Avi, and limit the size of inline media.
    • Thread statistics: time to first token, tokens per second, cached tokens, and request and tool errors per thread.
    • Structured agent questions support single-choice, multiple-choice, free-text, and custom answers.
    • Automatic context compression on provider errors (context_length_exceeded) or when reaching user‐defined threshold.
    • Context usage details: the composer indicator opens a segmented estimate (instructions, global context, tools, messages, tool results, overhead, grouped by MCP server).
    • Quick context compaction: drop tool results older than the latest four turns via Context usage or /quick-compress, alongside the /compress full checkpoint flow.
    • Resume button on stopped or failed chats, which continue from the last assistant turn.
    • Configurable response verbosity: low, medium, or high verbosity for injected assistant instructions.
    • Trace + Requests diagnostics: a log mode that records the raw HTTP request and response of failed provider calls with secrets redacted.
    • Improve your prompts and their clarity with /optimize-prompt, which also translates them to English, or only translate them with /translate-prompt.
  • Rich chat content:
    • Assistant messages can render callouts, diffs, diagrams, equations, and bar, line, and pie charts.
    • Workspace file excerpts, copyable text blocks, and tabs rendered inline in the conversation.
  • Goals and targets:
    • Goals can be started with /goal or by the agent itself.
    • Helper model expands the goal with completion criteria, execution rules, and relevant meta‐information.
    • Model loops until the condition is met.
    • Infinite inference retry with long timeout for provider errors, rate‐limits, or server not interrupting the goal.
    • Goal progress: see the tokens used so far and ask for an estimate of the remaining work.
  • Ultra mode:
    • Aggressive delegation mode of sub‐agents to different solution‐exploration fronts.
    • Has a rigid workflow of recognition, judgment, and refinement of the work done.
    • Can consume many more tokens.
    • Can be used together with goals.
    • A scout maps the task before the first run, and the team shares an objective, constraints, and decisions.
  • Plan mode:
    • Agent uses sub‐agents to create an execution plan for a task.
    • Delegates sub‐agents for exploration, research, and independent checks to refine the plan.
    • Instructs sub‐agents to talk actively with each other to reach a consensus.
    • Plan and Ultra selections persist with each conversation until disabled.
  • Rubber Duck reviews:
    • Fork the current conversation into a read-only judgment session where a supervisor model interviews the agent.
    • Returns the discussed points and a proposed execution plan before anything is executed.
  • Quick chat and side chats:
    • Side chats: fork the current conversation into a quick side chat to ask about the agent’s work without interrupting the main chat. Side chats can direct, orchestrate, and assist the main agent and its sub‐agents.
    • Quick chats: a separate window for fast questions, with the same tools, composer, and permissions as a normal chat, a folder you can change, and custom instructions.
    • Quick questions: select text in a chat, a file preview, or a diff and ask about it in a small popover, or annotate the selection in the composer.
  • Side panel:
    • View files, git changes in the side panel
    • Generate commits from Git Review, optionally pushing the branch afterwards
    • Tag conversations and color-code folders
    • View tasks started by the agent during its threads
    • View provider limits and consumption in the side panel, or inspect usage from the composer with /usage (OpenAI Subscription, AIVAX, and plugin sources)
  • Archive and retention:
    • Search, restore, or permanently delete archived conversations.
    • Archive all chats of a sidebar group at once.
    • Configure automatic retention for regular and disposable conversations.
    • Review storage usage, force cleanup, and clear temporary attachments, tool outputs, logs, and cached media.
  • Automatic updates:
    • Installed builds check stable GitHub releases at startup and every six hours, flag Settings when an update is available, and install the matching platform asset from a banner in Settings → General.
  • Customizable:
    • Choose different personalities for the chat (friendly, candid, cynical, etc.)
    • Choose interface themes, including GitHub, Catppuccin, Solarized, Nord, Tokyo Night, and Darcula
    • Configurable keyboard shortcuts, chat search with filters and recent chats, find in chat, and message markers to jump between your messages
    • Optional sidebar transparency: Tabbed Mica on Windows 11, Acrylic on Windows 10, native vibrancy on macOS
    • Choose custom wallpapers in chat.

Planned features (roadmap):

  • Pets!
  • Side browser panel
  • Terminal auxiliary panel (to view running background terminals and inspect them)
  • Improve /ultra mode
  • Add more providers (Cursor, Claude Code, Antigravity)
  • Mobile app (PWA)

Supported providers

For now, you can configure inference providers with the internal providers:

  • OpenAI chat/completions API
  • OpenAI responses API
  • OpenAI Subscription (Codex)

OpenAI Subscription is the only AI subscription that allows OAuth2 and consuming its API directly, so we do not provide support for Claude Code or Antigravity.

These providers allow use via ACP command line to avoid being banned; however, ACP‐based providers are problematic for use in Avi because:

  • they have their own function sets;
  • they do not allow expanding their tools, instructions, or context directly;
  • they control their session lifecycle internally.

For Avi to work well, it needs full freedom with the provider, including providing instructions, tools, controlling sessions and messages.

If you think this is a mistake, you can:

  • create a plugin with your provider; test it
  • fork Avi and open a PR with a new provider.

For subscriptions like Kimi Code, GLM, Xiaomi, Qwen, all provide an API compatible with OpenAI Responses or Chat completions, which makes it easy to "plug" the model directly into Avi.

Getting started

Prerequisites

  • Bun installed and available in your terminal
  • Git
  • A supported Windows, macOS, or Linux desktop environment

Install and run

git clone https://github.com/aivaxlabs/avi.git
cd avi
bun install
bun run dev

Runtime diagnostic flags can be passed together or separately:

  • --inactive-bots: starts Avi without starting the bot scheduler or resuming interrupted bot runs.
  • --memory-trace: writes process CPU, memory, and disk I/O samples to ~/.aivax/trace.log every 250 ms.

During development:

bun run dev --inactive-bots --memory-trace

With an installed or packaged Windows executable:

& "C:\Path\To\Avi.exe" --inactive-bots --memory-trace

No environment variables are required for normal development. Providers and MCP servers are configured inside the application.

Focused orchestration checks: bun run test:side-chat runs database and child-thread tests under Electron; bun run test:rubber-duck checks the current 20-turn default and 10–500 bounds. bun run test:bots covers bot scheduling, Inbox, persistence, tools, and Core API; bun scripts/test-bot-composer.mjs checks the shared command catalog separately. Bot RPC tests use the required binary ORPC transport, not legacy JSON-RPC WebSocket messages.

Isolated Electron smoke check

Build the renderer with bun run build, then run the smoke in a disposable profile when another Avi instance is open. In Git Bash on Windows:

smoke="$(cygpath -u "$TEMP")/.avi/visualizations/$(date +%Y-%m-%d-%H-%M-%Z)/avi-smoke"
mkdir -p "$smoke/profile" "$smoke/electron"
USERPROFILE="$(cygpath -w "$smoke/profile")" HOME="$(cygpath -w "$smoke/profile")" \
  CHAT_APP_SMOKE_TEST=1 bun x electron . --skip-single-instance \
  --user-data-dir="$(cygpath -w "$smoke/electron")"
echo "Smoke exit: $?"

Require both Avi smoke test passed. and exit code 0. Keep the profile for diagnosis; its application trace, when emitted, is under profile/.aivax/trace.log. Electron exit code 3 alone does not identify the cause: a failed assertion while loading an Electron test script also produces App threw an error during load and code 3. Inspect stderr and distinguish the test entrypoint from electron . before changing startup code.

Provider setup

Open Settings → Providers, then choose one of the supported connection types:

OpenAI Subscription

Connect a ChatGPT account through the browser-based OAuth flow. Supported models are managed by Avi and become available after authorization.

OpenAI Compatible

Configure a provider that implements either:

  • POST /v1/responses
  • POST /v1/chat/completions

Provide the base URL, API key, and models exposed by the service. Model capabilities and reasoning behavior can be adjusted per model.

Contributing

  1. Fork the repository.
  2. Create a focused branch.
  3. Install dependencies with bun install.
  4. Make the smallest coherent change.
  5. Run the relevant tests, syntax check, and build.
  6. Open a pull request describing the behavior and validation performed.

Prefer concise changes that preserve existing behavior and keep provider-specific logic inside src/providers/.

Credits

About

A local desktop workspace for AI conversations, tools, and orchestration.

Resources

Stars

12 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages