Skip to main content

AI-Native Distributed Filesystem Architecture

Project description

The AI-native filesystem for cognitive agents.

Watch the demo

⚠️ Beta: Nexus is under active development. APIs may change.

🎯 What is Nexus?

Nexus is a virtual filesystem server for AI agents. It unifies files, databases, APIs, and SaaS tools into a single path-based API with built-in permissions, memory, semantic search, and skills lifecycle management.

Humans manage context. Agents operate within it.

The Nexus Control Panel lets humans curate the files, memories, permissions, and integrations that agents can access—providing oversight and control while agents focus on execution.

This repo contains the open-source server, SDK, CLI, and examples.

Highlights

Hero Features

  • Universal Connectors — One API for local files, S3/GCS, Gmail, Google Drive, X/Twitter, and custom MCP servers
  • Sandboxed Execution — Run code safely with Docker/E2B integration
  • Grep Everythingnexus grep and semantic search across all backends with connector cache
  • Skills System — Package agent capabilities with versioning, governance, and exporters (LangGraph, MCP, CLI)

Core Platform

  • Control Panel — User management, permissions, integrations, audit & versioning
  • Runtime Modules — Workspaces, Memory, Workflows, Files, Skills, Sandbox
  • ReBAC Permissions — Zanzibar-style access control with multi-tenant isolation

Advanced

  • Event-driven workflows, semantic search + LLM document reading, content deduplication + versioning, 14 MCP tools, plugin system, batch operations

Design Principles

  • Everything is a File — Memories, CRM records, MCP servers, and documents all expose the same interface with paths, metadata, and permissions for unified search and composability.
  • Just-in-Time Retrieval — Instead of pre-indexing everything, Nexus retrieves exactly what's needed when it's needed, adapting the retrieval strategy to each query.

🧑‍💻 Getting Started

Local Server

git clone https://github.com/nexi-lab/nexus.git
cd nexus
cp .env.example .env.local

# Set env
# Required: ANTHROPIC_API_KEY
# Optional: TAVILY_API_KEY, FIRECRAWL_API_KEY, NEXUS_OAUTH_GOOGLE_CLIENT_ID, NEXUS_OAUTH_GOOGLE_CLIENT_SECRET

./local-demo.sh --start

Docker Server

./docker-demo.sh --init
./docker-demo.sh --start

Python SDK

pip install nexus-ai-fs
import nexus

nx = nexus.connect(config={
    "url": "http://localhost:8080",
    "api_key": "nxk_..."
})

# File operations
nx.write("/workspace/hello.txt", b"Hello, Nexus!")
print(nx.read("/workspace/hello.txt").decode())

# Search across all backends
results = nx.grep("TODO", "/workspace")

# Agent memory
nx.memory.store("User prefers detailed explanations", memory_type="preference")
context = nx.memory.query("What does the user prefer?")

nx.close()

CLI

pip install nexus-ai-fs

export NEXUS_URL="http://localhost:8080"
export NEXUS_API_KEY="nxk_..."

nexus write /workspace/hello.txt "Hello, Nexus!"
nexus cat /workspace/hello.txt
nexus grep "TODO" /workspace
nexus memory store "Important fact" --type fact

💡 Why Nexus?

Problem Nexus Solution
Fragmented APIs One path-based API for all connectors
Permission chaos Zanzibar-style ReBAC with audit trails
Ephemeral memory Persistent memory with semantic retrieval
Agent silos Shared workspaces and skills registry
No oversight Control Panel for human-in-the-loop management
Ad-hoc tools Skills lifecycle management with versioning, governance, and multi-format export

🔧 How Nexus Works

Nexus Architecture

Access Layer: Agents connect via CLI, MCP Server, Python SDK, or REST API.

Application Layer:

  • Control Panel — Humans manage users, permissions, integrations, and audit logs
  • Runtime — Core operations (glob, grep, semantic search, file ops, run code) and modules (workspaces, memory, workflows, files, skills, sandbox)

Infrastructure Layer: OAuth, ReBAC permissions engine, FUSE mounting, RAG pipelines.

Cache Layer: L1 in-memory cache and L2 PostgreSQL cache for vector embeddings, ReBAC tuples, and metadata.

Connectors: X/Twitter, MCP servers, Gmail, Local FS, GCS, Google Drive, AWS S3, and custom connectors.

📚 Examples

Framework Description Location
CrewAI Multi-agent collaboration examples/crewai/
LangGraph Permission-based workflows examples/langgraph_integration/
Claude SDK ReAct agent pattern examples/claude_agent_sdk/
OpenAI Agents Multi-tenant with memory examples/openai_agents/
CLI 40+ shell demos examples/cli/

📖 Documentation

🤝 Contributing

git clone https://github.com/nexi-lab/nexus.git
cd nexus
pip install -e ".[dev]"
pre-commit install
pytest tests/

See CONTRIBUTING.md for guidelines.

📝 License

© 2025 Nexi Labs, Inc. Licensed under Apache License 2.0 - See LICENSE for details.


If Nexus helps your project, please ⭐ the repo!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nexus_ai_fs-0.6.4.tar.gz (7.9 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

nexus_ai_fs-0.6.4-cp313-cp313-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.13Windows x86-64

nexus_ai_fs-0.6.4-cp313-cp313-manylinux_2_34_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

nexus_ai_fs-0.6.4-cp313-cp313-macosx_11_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

nexus_ai_fs-0.6.4-cp313-cp313-macosx_10_12_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

File details

Details for the file nexus_ai_fs-0.6.4.tar.gz.

File metadata

  • Download URL: nexus_ai_fs-0.6.4.tar.gz
  • Upload date:
  • Size: 7.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for nexus_ai_fs-0.6.4.tar.gz
Algorithm Hash digest
SHA256 160054a18b40c92e9460e176b4460b9be78ad94022d1fc8eeca3a9e0f701cc51
MD5 19d8d378ba596888e9241f775dea267a
BLAKE2b-256 ee839377e9ca94df4b02a0e56cfffa1b264151461b3131e992420365ab73f31f

See more details on using hashes here.

File details

Details for the file nexus_ai_fs-0.6.4-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for nexus_ai_fs-0.6.4-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 3166850f9e5939f1492f974df18f43439a1e98288637d433bb170fe7f555f0ec
MD5 c0bfa021394d6b6ed412f916843af17c
BLAKE2b-256 8904f90da315969cf9af3c8eb18a5f11501eb5e46853c950118cee6d4cb80683

See more details on using hashes here.

File details

Details for the file nexus_ai_fs-0.6.4-cp313-cp313-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for nexus_ai_fs-0.6.4-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 a55dc5b19355db50e463fe01e727dab074d466d7fca7000403715f3fcecd2415
MD5 24ed04c6c2680d723ff80178eba966e7
BLAKE2b-256 c0e6add629b3c87e144f9199387394bfc3bcccbb011a8d1c5b620dc657b0d965

See more details on using hashes here.

File details

Details for the file nexus_ai_fs-0.6.4-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for nexus_ai_fs-0.6.4-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f39bc0da42fa6ae346214cd0f9fc110d2a493b370ecf46dedc7b3b989e9e07a0
MD5 5d2cc0020d83e830420efe01453c4754
BLAKE2b-256 db1f93874f638019cbbb0e780dbe4509653fd05a2c2873899471bd1529589906

See more details on using hashes here.

File details

Details for the file nexus_ai_fs-0.6.4-cp313-cp313-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for nexus_ai_fs-0.6.4-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 b215e3433773603587d72bb9945f87b08f2d1c3b7cf12d321f541eba71775e0e
MD5 cd30da19a49ba23c2fabeb4a0641e03a
BLAKE2b-256 cc7df1d60766e05e87369d5ef3b7f86413637ffeef10ae9b340318d69280f932

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page