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.51.1
python -m pip install "nexilume[fastmcp]==0.51.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.51.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 (introduced 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.52.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.52.1
File Size Uploaded Provenance Actions
nexilume-0.52.1.tar.gz 1.2 MB With provenance Details for nexilume-0.52.1.tar.gz

Built distribution (wheel)

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

Total release size: 1.5 MB

Release files / nexilume-0.52.1.tar.gz

Download URL nexilume-0.52.1.tar.gz
Size 1.2 MB
Tags Source
SHA-256 checksum
How to use checksums
6d2a7c95f1615e0433207d0256f0bff85577375c1a37730831ae55fc4150e935
BLAKE2b-256 checksum
How to use checksums
c3119cfad216d0b7f9f6081e9f585057fe76cb19f28f8172a7cac1eb6390350f
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 Nov 15, 2026.

Transparency log

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

Download URL nexilume-0.52.1-py3-none-any.whl
Size 262.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0f6494fbcdba62065e6c9856656e984e4dae986475107fea53e798c8297dc8cb
BLAKE2b-256 checksum
How to use checksums
3a5d4d1aa8b03ad3dede5e23c3d16174ce322fd127b6c609dd0ba0d400d2df61
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 Nov 15, 2026.

Transparency log

Security for nexilume 0.52.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for nexilume-0.52.1.tar.gz

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 Nov 15, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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