0g-aura

中文文档
0.4.31发布于 2026/05/25MITES Module

Decentralized AI coding agent on 0G Compute

原始使用文档
文档目录10 节
  1. Install
  2. Setup
  3. Usage
  4. CLI Flags
  5. Slash Commands
  6. Keyboard Shortcuts
  7. Models
  8. Configuration
  9. How It Works
  10. License

0g-aura

Decentralized AI coding agent powered by 0G Compute. Describe what you want to build, edit, or fix — aura streams responses from verifiable GPU providers and applies file changes directly to your project.

Install

npm install -g 0g-aura

Or with npx (no install):

npx 0g-aura

Or clone and link locally:

git clone <repo-url>
cd 0g-aura
npm install
npm run build
npm link

Setup

aura init

This walks you through wallet setup interactively:

  1. Create a new wallet or import an existing private key
  2. Choose where to save (./.env or ~/.aura/.env for global)
  3. Checks your A0GI balance automatically

You need A0GI tokens to pay for decentralized compute. Get them at portal.0g.ai.

Usage

# Start in current directory with default model
aura

# Choose a model
aura -m deepseek-chat-v3-0324

# Target a specific project directory
aura -d ./my-project

# Skip apply confirmations
aura --no-confirm

Inside the TUI, type a prompt and press Enter. Aura will:

  1. Read your project files for context
  2. Stream a response from a 0G compute provider in real-time
  3. Show a diff of proposed changes
  4. Ask for confirmation before writing files

CLI Flags

FlagDescription
-m, --model <name>Model to use (default: GLM-5-FP8)
-d, --dir <path>Project directory (default: cwd)
--no-confirmApply changes without confirmation
-V, --versionShow version
-h, --helpShow help

Slash Commands

CommandDescription
/helpShow all commands
/model <name>Switch AI model
/add <path>Add a file to prompt context
/remove <path|all>Remove file(s) from context
/filesShow detected project tree
/statusCheck 0G Compute connectivity
/balanceCheck wallet A0GI balance
/undoRevert the last applied file changes
/export [file]Save conversation to markdown
/costShow session token usage
/clearClear conversation history
/quitExit

Keyboard Shortcuts

KeyAction
EnterSend prompt / confirm apply
EscClear input / reject apply
Up/DownRecall previous prompts
Shift+Up/DownScroll conversation
PageUp/PageDownScroll fast
Home/EndJump to oldest/latest
Ctrl+CExit

Models

ModelDescription
GLM-5-FP8Default, fast general-purpose
deepseek-chat-v3-0324DeepSeek v3
gpt-oss-120b120B open-source
qwen3-vl-30b-a3b-instructQwen3 multimodal

Configuration

Environment VariableDefaultDescription
ZG_PRIVATE_KEY(required)0G wallet private key
ZG_RPC_URLhttps://evmrpc.0g.ai0G RPC endpoint
ZG_AUTO_DISCOVER_PROVIDERtrueAuto-discover compute providers
ZG_PROVIDER_ADDRESS—Pin a specific provider (skips discovery)

Config is loaded from ./.env first, then ~/.aura/.env as fallback. Run aura init to create one.

How It Works

Aura connects to the 0G decentralized compute network through the @0glabs/0g-serving-broker SDK. When you send a prompt:

  1. Context assembly — scans your project tree and reads key files (with automatic token budget management)
  2. Provider discovery — finds an available GPU provider serving your chosen model (or uses a pinned address)
  3. Streaming inference — sends your conversation + project context to the provider and streams the response in real-time
  4. Parsing — extracts file changes and shell commands from the model output
  5. Apply — shows a diff preview, then writes files and runs commands on confirmation (with /undo support)

All inference runs on decentralized, verifiable GPU providers — no centralized API keys needed, just an 0G wallet with A0GI tokens.

License

MIT

版本与发布记录

0g-aura 共发布 48 个版本,首次发布于 2026/03/18;过去 12 个月发布了 48 个版本。

版本发布日期距今
0.4.31latest2026/05/255 个月前
0.4.302026/05/235 个月前
0.4.292026/05/046 个月前
0.4.282026/05/046 个月前
0.4.272026/04/196 个月前
0.4.262026/04/196 个月前

关于 0g-aura 的常见问题

0g-aura 是什么?

0G计算上的分散式AI编码代理

如何安装 0g-aura?

在项目目录运行 npm install 0g-aura,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 aura,可以用 npx aura 直接运行。

0g-aura 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/0g-aura 是否存在。

0g-aura 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

0g-aura 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=18。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

0g-aura 可以商用吗?

0g-aura 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

0g-aura 还在维护吗?

最新版本 0.4.31 发布于 2026/05/25(5 个月前);至今共发布 48 个版本,其中过去 12 个月发布了 48 个;首次发布于 2026/03/18。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。