antares

module
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 1, 2026 License: Apache-2.0

README

Antares

Antares

A self-hosted AI agent. Go backend, React dashboard, one binary.

Antares reads and writes files, runs shell commands, drives a real browser, searches the web, remembers what matters across sessions, retrieves from a semantic index, schedules its own work, keeps working towards a goal across turns, and answers from Telegram and Discord — all from a single process you run on your own machine.

antares            # terminal UI
antares serve      # start API + dashboard in the background on :8787
antares status     # show the background server status
antares stop       # stop the background server
antares setup      # configure it, in the browser or the terminal

[!NOTE] Antares is an early release. It runs and is used daily, but the surface is still moving and rough edges are expected. Bug reports, feature ideas, and pull requests are all welcome — open an issue or send a PR. See Contributing.

Runs on Linux, macOS, and Windows.


A look at it

Antares chat


Memory & native RAG — durable facts the agent learns, plus an in-process retrieval index (hybrid search + rerank) wired into every turn.VPS monitoring
VPS over SSH — live CPU/RAM/disk, process lists, and agent-driven management, credentials encrypted at rest.Soul / identity
Soul — give the agent a name and personality (SOUL.md), set once in a friendly first-run interview and applied everywhere: web, terminal, and every gateway.

Why it is built this way

Decision Reason
Go backend, no framework One static binary, no runtime to install, low idle memory.
net/http routing Go 1.22 method+pattern routing covers every route here.
Pluggable storage SQLite for a single node, Postgres when you outgrow it — same code.
Dashboard embedded in the binary make build produces one file to copy anywhere.
Hand-rolled WebSocket client The Discord gateway is the only consumer; a small internal/wsutil beats a dependency.

Dependencies are deliberately few: a YAML parser, two database drivers. Everything else is the standard library.


Quick start

The installer downloads the prebuilt binary for your platform from GitHub Releases — no build tools required. Full guide, per-OS notes, and troubleshooting: docs/installation.md.

Linux / macOS

curl -fsSL https://raw.githubusercontent.com/enowdev/antares/main/scripts/install.sh | bash

Windows (PowerShell)

irm https://raw.githubusercontent.com/enowdev/antares/main/scripts/install.ps1 | iex

While the repo is private, install the GitHub CLI and run gh auth login first — the installer uses it to fetch release assets. Once the repo is public this is not needed.

From source (to develop, or run an unreleased commit — needs Go 1.21+, Bun/npm, git):

git clone https://github.com/enowdev/antares.git
cd antares
make install          # Go modules, Air, frontend packages
make build            # single binary with the dashboard embedded
./bin/antares         # first run drops straight into setup

Setup asks how you want to configure it:

    1  Browser   — a guided page in the dashboard
    2  Terminal  — a few questions right here

Both write the same ~/.antares/config.yaml, so pick whichever is in front of you. On a headless box the browser option prints every address the setup page is reachable on, so you can finish from a laptop on the same network.

For development, run both servers with hot reload:

make dev              # backend (Air) + frontend (Vite)

Production build:

make build            # → bin/antares, dashboard embedded
./bin/antares serve   # starts in the background

Use antares serve --foreground when running under systemd, Docker, or while debugging and you want the server attached to the current terminal. Daemon logs are written to ~/.antares/logs/daemon.log.

Accessing it from another machine

Both dev servers bind 0.0.0.0, so a private-network address works directly:

http://<tailscale-ip>:5173     # dev
http://<tailscale-ip>:8787     # production binary

Antares leaves the dashboard open when server.auth_token is empty, which is the right default behind a private network. Set the token to require a bearer token.


Configuration

Everything lives in ~/.antares/config.yaml, editable from the dashboard, the CLI, or the file itself. Environment variables override the file; ~/.antares/.env is loaded automatically.

antares config get model.default
antares config set model.default anthropic/claude-sonnet-4.5
antares config path
Key Meaning
model.default / model.provider Which model answers
providers.* Endpoints and API keys
database.driver sqlite, postgres, or memory
tools.toolset Which tools the model gets: minimal, coding, research, default, all
rag.embed_provider / rag.rerank_mode Native retrieval: embeddings (voyage, openai, custom) and rerank (llm, api, off)
gateway.telegram / gateway.discord Messaging bots
tools.browser The real-browser tool: executable, viewport, headed mode, stealth
tools.http The http_request tool: browser-fingerprinted API calls, proxy
agent.verify_replies Check a finished answer against the request before showing it

Providers

Any OpenAI-compatible endpoint works out of the box; Anthropic and Gemini have native adapters so reasoning, prompt caching, and vision behave correctly.

Provider Kind Notes
OpenRouter openai-compatible Default. Model ids stay slash-qualified.
OpenAI openai
Anthropic anthropic Extended thinking, prompt caching
Google Gemini gemini Thinking budgets
Ollama / LM Studio / vLLM openai-compatible Point base_url at the local server
Anything else custom Set base_url and api_key

Storage

database:
  driver: sqlite
  dsn: ~/.antares/antares.db
database:
  driver: postgres
  dsn: postgres://user:pass@localhost:5432/antares?sslmode=disable

SQLite uses FTS5 for conversation search; Postgres uses tsvector. Both are created automatically on first run.


What it can do

Tools. File read/write/edit, directory listing, glob, regex search, a persistent shell (working directory and environment survive between calls), a real browser, web search and fetch, long-term memory, cross-session search, semantic retrieval, task lists, skill authoring, and sub-agent delegation.

A real browser. Antares drives an actual Chromium over the DevTools protocol — no driver binary and no Node. Pages are described rather than screenshotted: a snapshot lists what a person could act on, each with a reference the model names to click or type into. The page persists between tool calls, so a login holds while the agent keeps working. For sites behind a bot-detection challenge, a stealth mode launches a source-patched, signature- verified Chromium that passes them. See docs/browser.md.

Fingerprinted HTTP. For APIs rather than pages, http_request calls endpoints with a real browser's TLS and HTTP/2 fingerprint (JA3/JA4, HTTP/2 settings, header order), so services that reject a stock HTTP client at the handshake still answer. See docs/http.md.

Specialist roles. The agent is a team of specialists, not one generalist — a reviewer that only reads, a researcher that only browses, a report writer that only writes. /role runs a conversation as one; the agent delegates a piece of work to the specialist suited to it. Thirteen ship, including a security set for authorized penetration testing, gated on a scope you control. See docs/roles.md.

Slash commands. /status, /model, /skills, /goal, and two dozen more work identically in the terminal, in the web chat, and in a Telegram or Discord thread, because all three dispatch through one definition. The web composer completes them as you type. See docs/commands.md.

A hub. Skills and MCP servers have a browsable catalogue with one-click install. Eight skills ship inside the binary; beyond those, a skill can come from any public GitHub repository or any URL serving a SKILL.md. Installed skills are scanned first — a skill is prompt text the model follows, so one that pipes a download into a shell is refused rather than quietly obeyed. See docs/hub.md.

A harness that survives long work. A repetition guard catches a model calling the same thing with the same arguments and tells it to change approach. Steering delivers an instruction typed while a run is already going. Optional verification runs a second model over a finished answer to catch work that was described but not done. Standing goals outlive a turn: a judge decides whether the goal is really met and, if not, names the next step. See docs/harness.md.

Memory. The agent decides what is worth keeping and writes it to durable storage. Memories are injected into the system prompt on every turn, bounded by memory.memory_char_limit.

RAG. Fully native, in-process — no external daemon. Embeds with your configured provider (Voyage, OpenAI, or any compatible endpoint), stores vectors in the Antares database, and runs a four-stage pipeline: hybrid recall (dense + lexical) → rerank (Voyage/API when available, else an auxiliary model, else off) → near-duplicate compression → top-k. With auto_context on it indexes each conversation and pulls relevant knowledge into every turn; a project session can index its whole folder and keep it fresh as files change.

Skills. Markdown files with YAML front matter in ~/.antares/skills. The agent writes its own after solving something non-obvious; the catalogue (names and descriptions only) goes in the prompt, and full bodies are fetched on demand so the context stays small.

Scheduling. A five-field cron parser plus @daily/@every 90m shorthands. Jobs are natural-language prompts that run unattended and can deliver their output to a messaging channel.

Messaging. Telegram (long polling, no public domain needed) and Discord (websocket gateway). Both share the same sessions, memory, and tools, and both gate access behind an allow list or a pairing approval flow.

MCP. External Model Context Protocol servers over stdio or streamable HTTP. Their tools are namespaced mcp__<server>__<tool> and made available to the model automatically; a server that fails to start is reported, never fatal.

Two interfaces. A full-screen terminal UI (antares) and a web dashboard (antares serve) over the same agent, sessions, and memory. The TUI has a multiline composer, slash-command completion, live tool output, history recall, scrollback, and Ctrl+C interrupt. Run /help inside it for the full list.

Context compaction. As a conversation approaches the model's context window, older turns are summarised while recent ones stay verbatim — and tool-call turns are never split from their results.


Layout

cmd/antares/          CLI entry point
internal/
  agent/              conversation loop, tool dispatch, compaction, delegation
  llm/                provider adapters (openai, anthropic, gemini, compatible)
  tools/              the callable tool surface and toolsets
  store/              Store interface + SQLite/Postgres implementation
  rag/                retrieval backends
  skills/             the skill library
  cron/               schedule parser and runner
  gateway/            Telegram and Discord adapters
  mcp/                Model Context Protocol client
  browser/            Chrome DevTools Protocol client and page control
  hub/                skill and MCP catalogue, and the installers
  commands/           slash commands, shared by every surface
  tui/                the terminal interface
  server/             HTTP API and dashboard hosting
  wsutil/             minimal RFC 6455 client
  config/             layered configuration and its schema
web/                  React dashboard (Vite, Tailwind, shadcn-style, Phosphor)

The dashboard owns its layout centrally: web/src/lib/routes.ts declares every page, and AppShell renders the container and header, so pages contain content only. The interface ships in English, Indonesian, Japanese, Chinese, and Russian.


Development

make dev         # backend (Air) + frontend (Vite), both hot-reloading
make dev-api     # backend only
make dev-web     # frontend only
make check       # go vet + go test + tsc
make smoke       # load every dashboard route in a real browser
make build       # single binary with the dashboard embedded
make doctor      # diagnose configuration and connectivity

make smoke exists because two of the worst bugs so far passed every type check: a hook called from inside an effect, and the server bouncing SPA routes to ./. Both blanked the entire dashboard. Loading each route in a real browser catches that class of failure; nothing static does.

antares doctor checks the config file, workspace, database, provider credentials, and RAG backend in one pass.


Documentation

Guide What it covers
Installation Install on Linux, macOS, Windows; upgrading; releases
Getting started First run, connecting a provider
Configuration Every setting, and where it can be set
Tools The tool surface and the toolsets
Browser Driving a real browser
HTTP requests Calling APIs with a browser TLS fingerprint
Roles Specialist agents, delegation, and authorized security testing
Skills Writing, installing, and learning skills
Hub The skill and MCP catalogue
Plugins Hooks for external programs
Sandboxing Confining what commands can reach
Commands Every slash command
Harness Goals, steering, verification, repetition guard
Memory and RAG What is remembered, and retrieval
Channels Telegram and Discord
Scheduling Cron jobs and delivery
MCP External Model Context Protocol servers
HTTP API Every endpoint
Deployment Running it as a service
Backups Archiving and restoring everything
Architecture How the pieces fit
Development Building and testing

Contributing

Antares is an early release and actively worked on — contributions are welcome.

  • Bugs & ideas: open an issue. Include what you ran, what happened, and antares doctor output where it helps.
  • Pull requests: send one. Run make check (go vet + tests + tsc) before pushing; for dashboard changes, make smoke loads every route in a real browser.
  • Scope: the interface is still moving, so for anything large it is worth opening an issue first to agree on the shape.

Because it is early, expect rough edges and the occasional breaking change between versions. Please report anything that surprises you.


License

Apache License 2.0. You may use, modify, and distribute Antares, including commercially; in return, keep the license and attribution notices, mark any files you change, and note that the license includes an express patent grant that terminates for anyone who brings a patent claim against the project.

Directories

Path Synopsis
cmd
antares command
Command antares runs the Antares agent: HTTP API, dashboard, and CLI.
Command antares runs the Antares agent: HTTP API, dashboard, and CLI.
tuidemo command
Command tuidemo previews the antares TUI with seeded content and no live model, for design work and hot-reload development.
Command tuidemo previews the antares TUI with seeded content and no live model, for design work and hot-reload development.
tuishot command
internal
agent
Package agent implements the conversation loop: it builds the prompt, calls the model, executes the tools it asks for, and streams every step out.
Package agent implements the conversation loop: it builds the prompt, calls the model, executes the tools it asks for, and streams every step out.
autopilot
Package autopilot runs queued work items to completion with as little supervision as the task allows: each card is taken into its own isolated workspace, worked by the agent, verified, and recorded — so a backlog can be ground through unattended and every outcome is auditable afterwards.
Package autopilot runs queued work items to completion with as little supervision as the task allows: each card is taken into its own isolated workspace, worked by the agent, verified, and recorded — so a backlog can be ground through unattended and every outcome is auditable afterwards.
backup
Package backup copies everything Antares keeps into one file, and puts it back.
Package backup copies everything Antares keeps into one file, and puts it back.
board
Package board is a simple Kanban board: cards in columns, persisted to disk.
Package board is a simple Kanban board: cards in columns, persisted to disk.
browser
Package browser drives a real Chromium over the DevTools protocol.
Package browser drives a real Chromium over the DevTools protocol.
checkpoint
Package checkpoint keeps a copy of every file the agent is about to change, so a bad edit can be undone.
Package checkpoint keeps a copy of every file the agent is about to change, so a bad edit can be undone.
commands
Package commands is the one place slash commands are defined.
Package commands is the one place slash commands are defined.
config
Package config holds the layered Antares configuration: file defaults, YAML overrides from the profile config, then environment variables.
Package config holds the layered Antares configuration: file defaults, YAML overrides from the profile config, then environment variables.
cron
Package cron implements the built-in scheduler: a five-field cron parser and a runner that executes natural-language jobs through the agent.
Package cron implements the built-in scheduler: a five-field cron parser and a runner that executes natural-language jobs through the agent.
depcheck
Package depcheck inspects whether external tools a feature needs (Ghidra, a JDK, radare2, …) are present on the host.
Package depcheck inspects whether external tools a feature needs (Ghidra, a JDK, radare2, …) are present on the host.
engagement
Package engagement models a structured security assessment: the phases it moves through, the facts discovered along the way, and how much of the work is actually done.
Package engagement models a structured security assessment: the phases it moves through, the facts discovered along the way, and how much of the work is actually done.
findings
Package findings records what a security engagement turned up.
Package findings records what a security engagement turned up.
gateway
Package gateway connects Antares to messaging platforms.
Package gateway connects Antares to messaging platforms.
hackbrowser
Package hackbrowser is an autonomous web-crawling engine built for offensive security reconnaissance.
Package hackbrowser is an autonomous web-crawling engine built for offensive security reconnaissance.
hookpack
Package hookpack ships the offensive-security script library inside the binary and unpacks each script to disk on first use.
Package hookpack ships the offensive-security script library inside the binary and unpacks each script to disk on first use.
httpshim
Package httpshim makes ordinary `curl` and `wget` invocations in the agent's terminal go through the browser-fingerprinted HTTP stack, so a command the model reaches for out of habit still passes bot-detection.
Package httpshim makes ordinary `curl` and `wget` invocations in the agent's terminal go through the browser-fingerprinted HTTP stack, so a command the model reaches for out of habit still passes bot-detection.
hub
Package hub is where new capabilities come from: a browsable catalogue of skills and MCP servers, and the machinery to install one.
Package hub is where new capabilities come from: a browsable catalogue of skills and MCP servers, and the machinery to install one.
intercept
Package intercept implements a native man-in-the-middle HTTP(S) proxy: it generates its own certificate authority, signs per-host leaf certificates on the fly, and records the request/response exchanges that flow through it — so antares can inspect, and (via rules) mock or rewrite, a target's traffic.
Package intercept implements a native man-in-the-middle HTTP(S) proxy: it generates its own certificate authority, signs per-host leaf certificates on the fly, and records the request/response exchanges that flow through it — so antares can inspect, and (via rules) mock or rewrite, a target's traffic.
llm
Package llm normalises several vendor chat APIs behind one streaming interface: OpenAI-compatible, OpenAI, Anthropic, Gemini, and custom endpoints.
Package llm normalises several vendor chat APIs behind one streaming interface: OpenAI-compatible, OpenAI, Anthropic, Gemini, and custom endpoints.
logx
Package logx provides structured logging with an in-memory ring buffer so the dashboard can tail recent lines without touching the filesystem.
Package logx provides structured logging with an in-memory ring buffer so the dashboard can tail recent lines without touching the filesystem.
mcp
Package mcp speaks the Model Context Protocol, letting Antares borrow tools from external servers over stdio or streamable HTTP.
Package mcp speaks the Model Context Protocol, letting Antares borrow tools from external servers over stdio or streamable HTTP.
plugin
Package plugin runs external programs at points in the agent's life, so behaviour can be added without rebuilding Antares.
Package plugin runs external programs at points in the agent's life, so behaviour can be added without rebuilding Antares.
providers
Package providers holds the catalogue of well-known LLM providers and the logic to connect one, shared by the TUI picker and the CLI so both stay in sync.
Package providers holds the catalogue of well-known LLM providers and the logic to connect one, shared by the TUI picker and the CLI so both stay in sync.
rag
Package rag is Antares' native retrieval store: it embeds chunks with the configured model, keeps the vectors in the Antares database, and layers reranking and near-duplicate compression on top of hybrid search.
Package rag is Antares' native retrieval store: it embeds chunks with the configured model, keeps the vectors in the Antares database, and layers reranking and near-duplicate compression on top of hybrid search.
roleperf
Package roleperf tracks how each specialist role performs, so the system can tell which of them is delivering.
Package roleperf tracks how each specialist role performs, so the system can tell which of them is delivering.
roles
Package roles is the agent's cast of specialists.
Package roles is the agent's cast of specialists.
sandbox
Package sandbox confines the commands the agent runs.
Package sandbox confines the commands the agent runs.
secret
Package secret encrypts small at-rest values (VPS passwords and SSH keys) with a machine-local key, so a leaked database does not hand over the credentials it stores.
Package secret encrypts small at-rest values (VPS passwords and SSH keys) with a machine-local key, so a leaked database does not hand over the credentials it stores.
server
Package server exposes the Antares HTTP API and serves the built dashboard.
Package server exposes the Antares HTTP API and serves the built dashboard.
skillpack
Package skillpack ships a large library of security methodology skills inside the binary and unpacks it on first run.
Package skillpack ships a large library of security methodology skills inside the binary and unpacks it on first run.
skills
Package skills manages the agent's learned procedures: Markdown files with YAML front matter that are injected into the prompt when relevant.
Package skills manages the agent's learned procedures: Markdown files with YAML front matter that are injected into the prompt when relevant.
stealth
Package stealth resolves and launches a source-patched stealth Chromium so the browser tool can reach sites guarded by bot-detection challenges (Cloudflare Turnstile and the like).
Package stealth resolves and launches a source-patched stealth Chromium so the browser tool can reach sites guarded by bot-detection challenges (Cloudflare Turnstile and the like).
store
Package store persists Antares state behind a driver-agnostic interface so the same code runs on SQLite (single node) or Postgres (shared/multi node).
Package store persists Antares state behind a driver-agnostic interface so the same code runs on SQLite (single node) or Postgres (shared/multi node).
tools
Package tools implements the agent's callable tool surface and the toolset groupings that decide which tools a given platform exposes.
Package tools implements the agent's callable tool surface and the toolset groupings that decide which tools a given platform exposes.
tui
Package tui is antares' terminal UI: a colourful, responsive, web-like chat built on Bubble Tea — sidebar, scrollable transcript with Markdown, a bordered input box, a slash-command palette, and toggleable reasoning.
Package tui is antares' terminal UI: a colourful, responsive, web-like chat built on Bubble Tea — sidebar, scrollable transcript with Markdown, a bordered input box, a slash-command palette, and toggleable reasoning.
version
Package version carries build identity for Antares.
Package version carries build identity for Antares.
vps
Package vps connects to a user's server over SSH and reads its state on demand — no agent installed on the box, just standard commands whose output is parsed into metrics.
Package vps connects to a user's server over SSH and reads its state on demand — no agent installed on the box, just standard commands whose output is parsed into metrics.
worktree
Package worktree isolates a delegated agent in its own copy of a git repository, so two sub-agents working in parallel do not tread on each other's files.
Package worktree isolates a delegated agent in its own copy of a git repository, so two sub-agents working in parallel do not tread on each other's files.
wsutil
Package wsutil is a minimal RFC 6455 client, enough to drive the Discord gateway without pulling in a WebSocket dependency.
Package wsutil is a minimal RFC 6455 client, enough to drive the Discord gateway without pulling in a WebSocket dependency.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL