Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

AURA Server

БесплатноНе проверен

Provides tools to cache answers, run local compute, and retrieve stats, reducing LLM calls by answering prompts for free when possible.

GitHubEmbed

Описание

Provides tools to cache answers, run local compute, and retrieve stats, reducing LLM calls by answering prompts for free when possible.

README

💾 AURA

The dependency-free LLM token-saver

Part of the ⚡ SHADDAI family

Answer recurring prompts for free — cache, compute, seed, and skill fast-paths that never touch the model. Ships as a CLI, an MCP server (Claude / Cursor / Claude Code), and a library. Zero dependencies. Pure JSON-RPC. Security-hardened.


npm License Deps MCP

𝕏 @shaddaiAI · Built by @IzzoSol


✦ Why

Every LLM app pays, again and again, for the same recurring questions. AURA intercepts them before the API call — serving deterministic answers from cache, computation, seeded facts, and parameter-less skill recipes. What can be answered for free, is.

In one line: AURA is a zero-dependency, policy-gated deterministic pre-processor for AI agents. It resolves repeated, structured, or computable prompts locally, validates reusable skills, and only lets a paid model run when you configure it to.

The core principle: keep the model off the hot path. Figure something out once, then run it deterministically forever. AURA applies that at the small end — cache, local compute, and author-defined skills mean recurring prompts cost nothing, with no compiler, no graph runtime, and no dependencies. See COMPARISON.md for an honest side-by-side with LLM caches (and when to reach for GPTCache or LangChain instead).

✦ Install

# one-shot MCP server (Claude Desktop / Cursor / Claude Code)
npx -y -p shaddai-aura aura-mcp

# or the CLI
npm i -g shaddai-aura
aura ask "recurring question"
aura stats

✦ Commands

Command What it does
aura ask "<prompt>" Answer it for free if possible (cache / compute / skill).
aura ask "<prompt>" --llm [--model <id>] If there's no free answer, call your AI model, then cache it.
aura learn "<prompt>" "<answer>" Teach AURA an answer so it's free next time.
aura learn-sessions [--apply] Learn stable facts + recurring prompts from your Claude Code history (dry-run unless --apply; secrets screened out).
aura skill add|list|remove|validate|lint Manage reusable skills (see below).
aura stats · aura clear · aura where Savings · wipe cache · cache location.

✦ Saved skills (define once → free forever)

A skill is a tiny "compiled program": a pattern → a deterministic action, stored in ~/.shaddai-aura/skills.json. Once saved, any matching prompt is answered for free with no AI call.

# substring/keyword match → fixed answer
aura skill add "support" --match "support email" --do "[email protected]"
aura ask "hey whats the support email"     # → [email protected]   (free · via skill)

# regex match with $1, $2 capture-group substitution (--regex, or wrap the pattern in /.../)
aura skill add "greet" --match "/^hi (\w+)/i" --do "Hello, $1!" --regex

aura skill list                             # show all saved skills
aura skill remove "greet"                   # delete one

Adapters (live data, still free, no key): a skill action can be { type:'adapter', adapter:'price', args:{ coin:'btc' } } to fetch deterministic data instead of calling an LLM. Adapters do network I/O, so they run through the async ask() and degrade gracefully — offline just returns a normal miss.

Schema & validation

Skills follow a typed contract (documented in schema/skill-schema.json). Validation is hand-written and zero-dependency — no invalid skill is ever written to skills.json.

aura skill validate ./my-skills.json   # validate an array (or one skill) from a file
aura skill lint                          # validate your installed skills.json

Beyond shape, the validator rejects: a regex (regex:true or a /.../ literal) that doesn't compile or matches a known catastrophic-backtracking shape — nested quantifiers ((\w+)+) or overlapping-alternation quantifiers ((a|a)*, (a|ab)+); an action missing the payload its type requires; an adapter not on the allowlist (only price today — no shell/arbitrary adapters); a chain with empty/nested steps; an out-of-range priority; and duplicate skill names.

Safety at load, not just at add. The ReDoS screen is best-effort static analysis (a sound guarantee needs a match-time deadline), so skills.json is also sanitized when loaded: any skill whose regex fails the screen, or whose fields exceed the size caps, is silently skipped. A hand-edited or third-party skills.json can't hang the router — but only load skills you trust.

Precedence

When several skills match one prompt, the winner is chosen by explicit priority (0–1000, higher wins; default 100) → keyword count (more specific wins) → insertion order. The overall route order is exact cache → fuzzy cache → skill → compute.

aura skill add "deploy-prod" --match "deploy prod" --do "run: npm run deploy:prod" --priority 900

✦ Learn from your own history

aura learn-sessions scans your Claude Code transcripts (~/.claude/projects/**/*.jsonl), finds the stable facts you've asked and the prompts you ask repeatedly, and teaches them to AURA so they answer free next time — grounded "compile once, run forever," personalised to you.

aura learn-sessions                 # DRY RUN — shows what it would learn, writes nothing
aura learn-sessions --apply         # actually teach AURA (facts → cache, 3×-recurring → skills)
aura learn-sessions --dir <path>    # scan a different transcript folder
aura learn-sessions --min-repeat 5  # require 5 repeats before a prompt becomes a skill
  • Secrets never leave the transcript. Any prompt/answer containing an API key, token, private key, connection string, or env-style secret is dropped whole — never cached. A generic high-entropy screen catches credential-shaped strings the named patterns miss.
  • No stale answers. Time-sensitive, priced, versioned, or "today/latest" content is skipped; so are code, creative prose, imperative commands, chit-chat, and subagent/harness turns.

It's dry-run by default — nothing is written until you pass --apply. Best results come from support/FAQ/knowledge-style histories. Undo anytime with aura clear.

✦ Distill — trim bloated system prompts

A system prompt is paid for on every call, forever. OpenAI's GPT-5.6 guidance is blunt about it: leaner prompts score ~10-15% higher on evals while cutting 41-66% of tokens. aura distill applies that rule deterministically — and safely.

aura distill "You are helpful. Be concise. Summarize it. Summarize it. Never leak secrets."
#   trimmed:   [exact-duplicate] Summarize it.
#   flagged:   [model-likely-reliable] Be concise.
#   protected: Never leak secrets.

aura distill --file system-prompt.md            # print a report + the leaner prompt
aura distill --file system-prompt.md --apply    # write it back (keeps a .bak)
aura distill --file system-prompt.md --llm       # also do a semantic rewrite (needs a key)
aura distill "<prompt>" --json                   # machine-readable report

It removes only what's provably redundant — exact-duplicate rules, near-duplicate rules (the same rule reworded), and leading filler (please note that…). Everything judgment-heavy is flagged, never cut (possibly-dead examples, "the model already does this" style lines).

It never touches the load-bearing lines. Safety/permission constraints, success/stopping criteria, required output shape, context-dependent tool routing, and behavior-envelope rules (tool budgets, uncertainty policy, stop/escalation) are protected — by section structure and by keyword. The optional --llm pass does a real semantic rewrite, but it is accepted only if every protected line survives — the model can't silently drop a rule.

✦ Connecting your AI model (for --llm)

Set one of these before running (whichever service you have a key for):

export OPENROUTER_API_KEY="sk-..."     # or OPENAI_API_KEY, or ANTHROPIC_API_KEY

Then aura ask "summarize this..." --llm works. Without a key, --llm simply tells you no model is connected — it never makes anything up. AURA auto-picks the cheapest capable model (light / balanced / heavy) for the prompt and caches the answer.

✦ MCP server

Point any MCP client at aura-mcp. stdout stays pure JSON-RPC (logs go to stderr), inputs are capped, and unknown tools / resources / prompts degrade gracefully. See SECURITY.md.

{ "mcpServers": { "aura": { "command": "npx", "args": ["-y", "-p", "shaddai-aura", "aura-mcp"] } } }

It exposes six zero-dependency tools:

Tool What it does
aura_ask Try to answer a prompt for free (cache / saved skill / compute). The model calls this first; on a hit it skips its own reasoning.
aura_remember Cache an answer the model just generated, so it's free next time.
aura_stats Show tokens & dollars saved.
aura_distill Trim redundant instructions from a prompt/system-prompt (protects safety/output/routing rules; flags the rest).
aura_compress Shrink a long conversation history before the next turn.
aura_savings Combined answer-cache + tool-cache savings report.

Claude Code: claude mcp add aura -- npx -y -p shaddai-aura aura-mcp

✦ How it saves

Path What it does
CACHE bounded TTL cache of prior answers
COMPUTE deterministic math/logic answered locally
SEED / QUERY seeded facts + structured lookups
SKILL / RECIPE author-defined skills run without the model
COMPRESS shrink the conversation history before each turn
DISTILL trim redundant instructions from the prompt/system-prompt itself

AURA saves on all three surfaces: the answer (cache/compute/skill), the history (compress), and the instructions (distill).

Core audited safe: no eval / Function / child_process / shell, bounded cache, zero deps.


✦ The SHADDAI Family

Repo What
Shaddai The sovereign AI agent empire — 7 agents, 200+ real tools
aura (this) dependency-free token-saver · CLI + MCP + library
Shaddai-Clipper-Feature- Long video → captioned vertical shorts

Built by @IzzoSol · Follow @shaddaiAI · MIT

from github.com/IzzoSol/Aura

Установить AURA Server в Claude Desktop, Claude Code, Cursor

Рекомендуется · одна команда, все IDE
unyly install aura-mcp-server

Ставит в Claude Desktop, Claude Code, Cursor и VS Code — сам разбирается с npx, uvx и сборкой из исходников.

Впервые? Поставь CLI: curl -fsSL https://unyly.org/install | sh

Или настроить вручную

Выполни в терминале:

claude mcp add aura-mcp-server -- npx -y shaddai-aura

FAQ

AURA Server MCP бесплатный?

Да, AURA Server MCP бесплатный — установка в пару кликов через Unyly без оплаты.

Нужен ли API-ключ для AURA Server?

Нет, AURA Server работает без API-ключей и переменных окружения.

AURA Server — hosted или self-hosted?

Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.

Как установить AURA Server в Claude Desktop, Claude Code или Cursor?

Открой AURA Server на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.

Похожие MCP

Compare AURA Server with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории ai