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

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

./scripts/local-demo.sh --start

Docker Server

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

Python SDK

pip install nexus-ai-fs
import nexus

nx = nexus.connect(config={
    "url": "http://localhost:2026",
    "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:2026"
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.7.0.tar.gz (15.5 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.7.0-cp313-cp313-win_amd64.whl (2.5 MB view details)

Uploaded CPython 3.13Windows x86-64

nexus_ai_fs-0.7.0-cp313-cp313-manylinux_2_34_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

nexus_ai_fs-0.7.0-cp313-cp313-macosx_11_0_arm64.whl (2.6 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

nexus_ai_fs-0.7.0-cp313-cp313-macosx_10_12_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: nexus_ai_fs-0.7.0.tar.gz
  • Upload date:
  • Size: 15.5 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.7.0.tar.gz
Algorithm Hash digest
SHA256 e9111244a46070949167195f4438695fd7d3ed8e6e53353212957a5e4a448564
MD5 e5f2618abc5fe6ab065c33fd468cd115
BLAKE2b-256 f265484dac1ec0c0a2d486087ff8df216bfa2283cdd04d074198109d6ce2bcc0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nexus_ai_fs-0.7.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 1ff0a15e63d900b975950b3a57c7fde97b044b59b73a4faf982631252411b2e5
MD5 9406b9f79a705732fc12a846fcbd3642
BLAKE2b-256 1015bec04a6727f2db4f66dbdcb84ec84cd44b3b8cadb2a1719ce88cd9ced7e2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nexus_ai_fs-0.7.0-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 c43738d0264a24addc472671e02cea07d20acee36a1055c16f33212288427d41
MD5 2f4f7ec2906738870eee244256044fe6
BLAKE2b-256 5c9175768f8bec1e8a478960d5a483ee22b7492dec65ac8f08b950a56fd2a5c9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nexus_ai_fs-0.7.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ee7fc5826945cb3923cb87f4739b20901000f2502f7ee0ecdad6a0c4db5fc9f6
MD5 37233de2aa6b49d524a17e89816883e0
BLAKE2b-256 508b2cc8394808bb8c5f859c7028c2b4e205d1f7bcecc17c76473eb267dceccf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nexus_ai_fs-0.7.0-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 129c8950b6c7272bd3729d11d0d18aad0cb2b8f6dd3e1c853c98e9a30beeb8ac
MD5 03cbf23565e9c2c7a5d82065fa0fffec
BLAKE2b-256 cbc9fbb04d1ee9ca287ba2d4e7cbc29030487fe145c8ab40e12b8fd43cbe7dc8

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