Skip to main content

nexilume — Nexus Python Agent SDK

PyPI Python

Build callable Agents and connect an authorized Computer to Nexus Cloud with the same Python SDK. Supports hosted MCP runtimes, OpenWrt registration and routed invocation, plus optional Computer, Browser and A2A integrations.

Install

Use a virtual environment. The dependency-free core supports Python 3.9+; Python 3.12 is recommended for optional integrations.

python -m pip install nexilume==0.49.1
python -m pip install "nexilume[fastmcp]==0.49.1"

Use python -m pip install --upgrade nexilume to upgrade the core SDK. The distribution name is nexilume, while the import name remains nexus_agent and the Computer CLI remains nexus-computer. The PyPI project named nexus-agent-sdk is unrelated.

If migrating from our older GitHub wheel, uninstall nexus-openwrt-agent-sdk first, then install nexilume in the same environment. Do not install both: they contain the same import namespace. Existing Computer pairing configuration is separate from the package and is not removed by pip uninstall.

A hosted MCP Agent

from nexus_agent import NexusAgent

agent = NexusAgent(runtime="hosted", cloud_name="Echo Agent")

@agent.capability("demo.echo")
def echo(payload):
    return {"echo": payload}

if __name__ == "__main__":
    agent.run()

Install the fastmcp extra to run this example. Starting the process alone does not register it in Cloud; configure or deploy its hosted runtime through your Nexus installation. OpenWrt LAN registration is a separate supported mode.

Computer Runtime

python -m pip install "nexilume[computer,browser]==0.49.1"
nexus-computer setup "<pairing-url-from-your-cloud>"
nexus-computer status

Run as your ordinary OS user. Wait until connected, then attach and authorize the Computer in Cloud. No inbound SSH port is needed. Browser control requires a compatible local Chromium browser and the browser extra. Never share pairing links, device keys or tokens.

IPv6 and MCP recovery in 0.49.1

OS-confirmed IPv6 conflicts now trigger bounded automatic reallocation: the failed address is removed, another candidate is tried, and known conflicts are temporarily avoided. DAD, firewall protection and other addresses stay intact. Windows address readiness no longer depends on the system language.

nexus-agent doctor
nexus-agent repair --yes
nexus-agent run --repair agent.py

Dependency repair is explicit, limited to recognized problems and verified before execution. Agent failures are never automatically replayed. Existing Windows address services use a separate SDK copy: after pip upgrade, follow the service update instructions.

Attached Computer binary files

Version 0.48.0 adds synchronous and asynchronous binary Workspace transfers:

data = ctx.workspace.read_bytes("images/input.png")
ctx.workspace.write_bytes("images/result.png", data)
ctx.workspace.upload("/agent-local/result.zip", "exports/result.zip")
ctx.workspace.download("exports/result.zip", "/agent-local/download.zip")

These operations require a caller-attached Computer and files.read / files.write authorization. Upgrade Cloud and Computer Runtime together to support workspace.binary.v1; upgrading this package alone cannot add the server-side protocol. The SDK never falls back to the Agent host's files. In-memory operations are limited to 16 MiB; streamed files to 1 GiB. HTTPS chunks and SHA-256 checks precede atomic replacement, so interrupted transfers preserve existing files. Use ctx.aio.workspace for asynchronous counterparts. After upgrading Runtime, run nexus-computer restart; pairings are retained.

Optional integrations

Dependency fixes in 0.47.1: Computer Tool Setup uses tomli on Python 3.9/3.10; MCP/A2A extras declare their direct imports; fastmcp-tasks uses official fastmcp[tasks]. See the compatibility guide. Browser/FastMCP/A2A require Python 3.10+; core and Computer support 3.9+. The windows extra is for Windows address/service helpers, not ordinary pairing. Browser binaries, Linux libraries, Docker and Provider images are not pip dependencies.

Extra Purpose
fastmcp Hosted MCP tools
fastmcp-tasks MCP task integration
computer Outbound Computer Runtime
browser Browser automation integration
a2a Agent-to-Agent integration
windows Windows service helpers

Documentation and support

License

The current source uses a modified version of the Apache License 2.0, with additional conditions (LicenseRef-Nexus-Additional-Terms-1.0), a source-available license, not unmodified Apache-2.0 or an OSI-approved open-source license. The complete LICENSE is bundled in the wheel and source distribution.

Already published packages retain their bundled license and identifier. Version 0.48.0 includes this license clarification without replacing any earlier release files.

Personal and single-tenant self-hosted use, including commercial single-tenant use, is allowed under the license. Operating a multi-tenant service or removing supplied Nexus UI branding requires prior written authorization. Headless SDK integration does not require adding a new logo. Earlier Apache-2.0 grants and third-party licenses remain unchanged. New contributions require the explicit contributor agreement included in the source distribution.

Commercial licensing: cary.nexilume@outlook.com.

Metadata

Release files for nexilume 0.49.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nexilume 0.49.1
File Size Uploaded
nexilume-0.49.1.tar.gz 392.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nexilume 0.49.1
File Interpreter ABI Platform
nexilume-0.49.1-py3-none-any.whl Python 3 none any Details

Total release size: 635.4 kB

Release files / nexilume-0.49.1.tar.gz

Download URL nexilume-0.49.1.tar.gz
Size 392.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2d66ce6ede319be6a49337e3a002f10ff21d84aa76ae8e02e1a0f2e15c6f3961
BLAKE2b-256 checksum
How to use checksums
b9905598b3e8dcb3f247e85fb1bf475b238160f22bc71bfb3f997af466f991ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 6, 2026.

Transparency log

Release files / nexilume-0.49.1-py3-none-any.whl

Download URL nexilume-0.49.1-py3-none-any.whl
Size 242.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f619f53bf266f2194592d1a3bd79e39b82de5efcd0051a8e4b481a536ecae600
BLAKE2b-256 checksum
How to use checksums
abef93d2ffd745a288e64566bd49748eb9154604d242cc1cdbd03e3c3e1ed352
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 6, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.49.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page