Skip to content

Johnny3116/Nexus-Agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

23,885 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Nexus Agent

Where all threads meet.

Nexus Agent is the autonomous agent layer for the Nexus AI ecosystem. It provides heartbeat reasoning, scheduled tasks, event hooks, and multi-channel communication β€” all running on your own hardware, locked behind Tailscale.

Forked from OpenClaw, rebranded and customized for the Nexus infrastructure.

Features

  • Heartbeat reasoning loop β€” evaluates system health every 15 minutes
  • Scheduled tasks β€” morning briefings, GitHub Scout, health digests
  • Event hooks β€” reflexes that fire on system events
  • Telegram chat β€” full conversational interface via grammY
  • Discord notifications β€” alerts and summaries via webhooks
  • WebUI dashboard β€” browser-based control panel
  • Tailscale-only networking β€” zero public attack surface

Architecture

                    WorkstationPrime
                          |
                          | (JARVIS / Claude Code)
                          |
        +-----------------+-----------------+
        |                 |                 |
        v                 v                 v
   NexusServer <------> NexusBody <------> Supabase
                                           |
   NEXUS-AGENT <---------------------------+
   (this repo)
   Port 18789, Tailscale-only

Quick Start

Requirements

  • Node.js 22+
  • pnpm (preferred) or npm
  • Tailscale mesh network

Install

git clone https://github.com/Johnny3116/Nexus-Agent.git
cd Nexus-Agent

pnpm install
pnpm build

Configure

Copy .env.example to .env and fill in your keys:

OPENAI_API_KEY=sk-...
TELEGRAM_BOT_TOKEN=123456:ABC-DEF...
DISCORD_WEBHOOK_URL=https://discord.com/api/webhooks/...
GITHUB_TOKEN=ghp_...
TAILSCALE_IP=100.x.x.x
NEXUS_CORE_URL=http://100.x.x.x:8000
SUPABASE_URL=https://...
SUPABASE_KEY=eyJ...

Run

# Guided setup
pnpm nexus-agent onboard --install-daemon

# Start gateway
pnpm nexus-agent gateway --port 18789

# Check health
pnpm nexus-agent doctor

Docker

docker-compose up -d
docker-compose logs -f

Development

pnpm install          # Install dependencies
pnpm build            # Build TypeScript
pnpm gateway:watch    # Dev mode with hot reload

Channels

Channel Purpose Implementation
Telegram Full chat grammY
Discord Notifications discord.js
WebUI Dashboard Lit + Vite

Scheduled Tasks

Task Schedule Description
heartbeat Every 15 min System health evaluation
morning-briefing 7:30 AM Overnight summary, pending items
github-scout 2:00 AM Search trending repos, analyze, generate project.md
health-digest 6:00 PM Daily summary if warnings accumulated

Security

  • Tailscale-only β€” port 18789 never exposed publicly
  • Approval queue β€” destructive actions require human approval
  • No email/calendar/social β€” by design
  • Secrets in .env β€” never committed

Color Palette (Nexus-Iris)

--nx-idle: #8b5cf6;     /* Purple */
--nx-think: #06b6d4;    /* Cyan */
--nx-speak: #fafaf9;    /* White */
--nx-error: #ef4444;    /* Red */
--nx-bg: #08090d;       /* Deep space */

Links

License

MIT


Nexus Agent - Where all threads meet

About

πŸ•·οΈ Nexus Agent β€” Personal AI Assistant **Where all threads meet.** Your own personal AI assistant. Any OS. Any platform.

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors