Skip to main content

AI-Native Distributed Filesystem Architecture

Project description

Nexus

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.3.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.3-cp313-cp313-win_amd64.whl (1.7 MB view details)

Uploaded CPython 3.13Windows x86-64

nexus_ai_fs-0.6.3-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.3-cp313-cp313-macosx_11_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

nexus_ai_fs-0.6.3-cp313-cp313-macosx_10_12_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: nexus_ai_fs-0.6.3.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.3.tar.gz
Algorithm Hash digest
SHA256 6b7a770f1b1c9896fbb6ca3a2772be5cd7e5fbd5edf54ce2276fb386519defa1
MD5 e5cadc3174d79e3c6848eea5a784785e
BLAKE2b-256 9041cf48f417759f80ba05c32048856bf37074357bce91b22db4f710fa9240bd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nexus_ai_fs-0.6.3-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 360177930ced1eaed5dd5ff365591b42d649c6d1d3a488730da7f52e7b5abaa5
MD5 e66a5cb44b8a811c815529ae3bc3dcc3
BLAKE2b-256 59e6437592b8cf82eaa2bb17697645597c15e27b10962b613993754db1f36eca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nexus_ai_fs-0.6.3-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 c43e1701bed4473c4258265409bbd8224b270097ad56d97f18eb7afca239063a
MD5 549b25917defeb4968d06c6298886937
BLAKE2b-256 2ab74317230694f237c0a86339ead7416a8f2ec28a6dcf365e1d09a4ab1f4cce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nexus_ai_fs-0.6.3-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 11f1c6e85b6bbabcd77f54ab6fa136d03403c28b659d2a03e1fb3d4d80d83586
MD5 e2763a7a13201a50a1eabd9e2f4a6f4a
BLAKE2b-256 d9e64c091ce82590841de90b9221c747923aef747874de519187ab817ef87be7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nexus_ai_fs-0.6.3-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 ba745dde576c272acdc786ef41b70498f6ffba6f384f4da6820206ced2c8805a
MD5 cda8b7c94cad2ee35c8c117aa4bb2198
BLAKE2b-256 77da5c7298051190c79079c40c315cd42c7bdef3f62751c79b26bb6a4a04cdc7

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