Skip to content
Projects

About

xangi - AGENTIC NEON GENESIS INTELLIGENCE

AI & Machine Learning

How these counts are measured

Measured star growth

in 24h
0
in 7 days
0
in 15 days
+1
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.en.md

Original

日本語 | English

xangi

CI Build GitHub Release License

AGENTIC NEON GENESIS INTELLIGENCE

xangi is an AI assistant that connects Claude Code, Codex, OpenCode, Cursor CLI, Grok CLI, Antigravity CLI, GitHub Copilot CLI, or a Local LLM to Discord, Slack, Telegram, Web Chat, and LINE. Discord is recommended, but xangi can also run with only a browser.

xangi cover with a blue x mark and a Web Chat illustration

Key features

  • Use your preferred AI agent from Discord, Web Chat, and other chat surfaces
  • Work in your own workspace containing skills and files
  • Keep conversation history and switch AI backends or models per channel
  • Run automatically on a schedule or in response to external events

Architecture

flowchart LR
    User([User]) <-->|Messages / files| Channels[Chat surfaces]
    Channels <--> Xangi[xangi<br>connectivity · sessions · automation]
    Xangi <--> Backend[AI agent backend]
    Backend <--> Workspace[User workspace<br>skills · code · documents · memory]
    Backend <--> External[Web · APIs · external services]
    classDef user fill:#fef3c7,stroke:#d97706,color:#111;
    classDef surface fill:#ede9fe,stroke:#7c3aed,color:#111;
    classDef core fill:#dbeafe,stroke:#2563eb,color:#111;
    classDef agent fill:#dcfce7,stroke:#16a34a,color:#111;
    classDef workspace fill:#fef9c3,stroke:#ca8a04,color:#111;
    classDef external fill:#f3f4f6,stroke:#6b7280,color:#111;
    class User user;
    class Channels surface;
    class Xangi core;
    class Backend agent;
    class Workspace workspace;
    class External external;

xangi handles chat connectivity, conversation continuity, and automated turns. The selected AI agent handles reasoning and tool execution, while skills and files remain in the user's workspace.

Quickstart

The same flow works on macOS, Linux, and WSL2.

AI service terms vary by provider, service, subscription plan, and authentication method (such as a subscription login or an API key). Check the latest terms and official guidance for the AI service you plan to use. See AI Service Terms for example reference pages.

  1. Prepare one supported AI tool. This example uses Codex.

    bash <(curl -fsSL https://github.com/karaage0703/xangi/releases/latest/download/setup-ai-tools.sh) codex
    

    Replace codex with claude-code, cursor, grok, antigravity, github-copilot, or opencode if needed.

  2. Install xangi.

    curl -fsSL https://github.com/karaage0703/xangi/releases/latest/download/install.sh | bash
    
  3. Open a new terminal and start guided setup.

    xangi setup
    

The guided setup currently communicates in Japanese. It lets you choose the workspace and AI backend, then starts and verifies Web Chat locally first. Tailscale and LAN exposure are optional settings offered only after the local setup works. If setup stops or you are unsure about the current state, run:

xangi doctor

xangi update never automatically restarts the app or worker; it tells you to run xangi restart to apply an update. You can also tell xangi “restart now” in the conversation. Managed updates run synchronously and report when the release is already current. Explicit xangi restart hands off to an independent helper; use the printed xangi restart status <job-id> command for completion or failure. External terminals can use xangi restart --wait for the final exit code. Linux checkouts running only a PM2 app use a separate PM2 helper without requiring systemd.

See the usage guide for installation, updates, removal, and configuration paths.

Start using xangi

  • Web Chat: initially open http://127.0.0.1:18888
  • Discord, Slack, Telegram, or LINE: message the configured bot
  • Health check: xangi doctor
  • AI-guided error investigation and repair: xangi rescue
  • Web UI URLs and reachability: xangi tool web_status
  • Version check: xangi --version
  • Connection settings: xangi settings
  • If the service was not started during setup: xangi service start

The usage guide covers chat commands, the terminal CLI, scheduling, Docker, Local LLMs, and environment variables.

Use /help for the Discord and Web command list. Run skills with /skill name or /<skill-name>, and list models with /backend models. Discord keeps /autoreply and /threadmode; other detailed settings are consolidated under /settings.

Platform setup

Develop from source

This section is for xangi contributors. Source builds require Node.js 22 or later, npm, and the AI CLI you intend to use.

cp .env.example .env
npm ci
npm run build
npm start

For Discord, set DISCORD_TOKEN and DISCORD_ALLOWED_USER in .env. For Web Chat only, set WEB_CHAT_ENABLED=true. A source checkout uses the process startup directory as its default workspace; set WORKSPACE_PATH when you need a different directory.

Use npm run dev during development. The validation commands are npm test, npm run typecheck, npm run lint, and npm run format:check. See the usage guide for PM2, multiple instances, and key environment variables, and .env.example for an annotated configuration sample.

To use Docker:

# Claude Code backend
docker compose up xangi -d --build

# Full image (also set AGENT_BACKEND=local-llm in .env to use a local model)
docker compose up xangi-max -d --build

# GPU image with CUDA and PyTorch
docker compose up xangi-gpu -d --build

See Docker deployment for details.

Security

  • Web Chat has no application-level authentication. LAN access exposes workspace browsing and editing to the same network scope. Prefer local access or Tailscale.
  • xangi settings binds temporarily to 127.0.0.1 and never sends stored tokens back to the browser.
  • Do not paste external-service tokens into AI conversations or shell history.

Workspace

ai-assistant-workspace is an optional starter kit with skills for notes, diaries, transcription, Notion integration, and more.

Extensions

Extensions connect specialized operations or services to xangi conversations, UI, and process management. Combine UI, AI, device connections, and data management as needed. A skill alone is enough when existing tools and procedures already meet the goal.

Use Settings in the Web UI for every runtime control and the common non-secret startup settings, each with explicit apply timing. Select per-channel settings by name and inspect both saved and effective values. The page lists login status and version for every supported AI-agent CLI and can run its official self-update after confirmation. Write-only API-key inputs save to the existing local secret store without redisplaying stored values. Add or manage external capabilities from Extensions. See the usage guide and Extension Integration for details.

  • xangi-search - An extension for searching your workspace
  • xangi-stackchan - An extension that brings xangi responses, expressions, and head movement to M5Stack devices
  • xangi-even-g2 - An extension with an Even Hub app and bridge for using xangi from Even Realities G2
  • xangi-avatar - A browser-based 2D avatar for voice conversations, screen sharing, and OBS
  • xangi-terminal - A browser terminal with direct shell access and natural-language command suggestions
  • xangi-dots - Bidirectional requests, responses, file transfers, and progress notifications with Dots
  • xangi-stopwatch - Voice conversations through the built-in microphone, screen, and speaker over USB or Tailscale
  • xangi-tasks - Task and category management, with requests to xangi from tasks
  • xangi-remote-desktop - View and control the same PC’s VNC desktop from a browser
  • xangi-voice-input - Japanese input using Chrome speech recognition
  • xangi-studio - Review PRs and documents, and edit drafts
  • xangi-feed - A feed reader for RSS, blogs, papers, podcasts, and YouTube, with article discussions through xangi
  • xangi-report - Save and organize HTML reports created in AI conversations, and read them on desktop or mobile
  • xangi-location - Look up your latest OwnTracks location in xangi, including its timestamp and accuracy
  • xangi-context - Visualize token usage, estimated costs, and the context breakdown

Related projects

  • xangi-pets - Desktop companions that display xangi state and responses

Documentation

Book

生活に溶け込むAI — Build Your Own AI Assistant with AI Agents (Japanese)

Acknowledgments

xangi's concept is inspired by OpenClaw.

License

MIT

Explore related projects

Loading…