Skip to main content

lucen-sdk — the MouseMouse API client for Python

The typed client for the MouseMouse REST API, generated from the hub's OpenAPI contract (served by every hub at /openapi.yaml, browsable at mousemouse.ai/docs/api) with openapi-python-client. One module per operation, one attrs class per schema; httpx underneath.

This is the layer the lucen command line (lucen-cli) and the MCP server (lucen-mcp) are built on. If you want to script the hub, from lucen import Hub in lucen-cli is the friendlier surface; use this package when you want the contract itself.

pip install lucen-sdk      # or: uv add lucen-sdk
from lucen_sdk import AuthenticatedClient, Client
from lucen_sdk.api.auth import get_me
from lucen_sdk.api.repos import get_repo, list_repos
from lucen_sdk.models import RepoKind

public = Client(base_url="https://api.mousemouse.ai")
robot = get_repo.sync("lucen", "laika", client=public)          # public repos need no key

hub = AuthenticatedClient(base_url="https://api.mousemouse.ai", token="lucen_sk_...")
me = get_me.sync(client=hub)
page = list_repos.sync(client=hub, kind=RepoKind.MODEL, limit=20)

Every operation has sync, sync_detailed (the Response with status and headers), asyncio and asyncio_detailed. Errors are RFC 9457 Problem objects; a private resource is 404, never 403. Keys are scoped read ⊂ write ⊂ train, and some operations are session-only (a key of any scope is refused: minting keys, approving a policy onto a robot).

The version follows the contract: a new minor is a breaking change to the generated surface, a patch adds operations or fields. Regenerated by the hub's make sdk; never hand-edited.

Changelog

  • 0.1.4 (2026-10-29): the contract's additions since 0.1.3, all additive: Jobs (createJobSnapshot, a job's inputs), the methods registry (listMethods, getMethod), robot skills and their versions, live control, a deploy's restore, shadow and bring-up steps, the model gateway (createLlmMessage, listLlmModels), billing and its cap, desktop sign-in, GitHub and Hugging Face connections, a run's code and evals, the cloud executor, and the overview's skill versions waiting for review. Declining a skill version takes a reason.
  • 0.1.1 (2026-10-18): the contract's additions since 0.1.0, all additive: workerHealth (GET /healthz/worker) and listExternalDatasets; how a hosted endpoint is billed (EndpointCostBasis, billed_seconds) and why it stopped (EndpointReport.stop_reason); the Usage page's month and buckets; RobotCard.provenance; the robot check's proposed gains; the policy a dataset was recorded with.
  • 0.1.0: the first release on PyPI.

Apache-2.0. © 2026 Lucen Robotics.

Metadata

Release files for lucen-sdk 0.1.4

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

Source distribution (sdist)

Source distribution for lucen-sdk 0.1.4
File Size Uploaded Provenance Actions
lucen_sdk-0.1.4.tar.gz 711.4 kB With provenance Details for lucen_sdk-0.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lucen-sdk 0.1.4
File Interpreter ABI Platform Actions
lucen_sdk-0.1.4-py3-none-any.whl Python 3 none any Details for lucen_sdk-0.1.4-py3-none-any.whl

Total release size: 2.3 MB

Release files / lucen_sdk-0.1.4.tar.gz

Download URL lucen_sdk-0.1.4.tar.gz
Size 711.4 kB
Tags Source
SHA-256 checksum
How to use checksums
51d92ef806fa8eebfacdd4841fa573789ceeedf2d0dc95b35c73f8ef2897b37f
BLAKE2b-256 checksum
How to use checksums
704c3044e5b49c7433a3fbb1d4dbfa5509302028ed22b28b80fbc2bef39ac1bc
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 29, 2026.

Transparency log

Release files / lucen_sdk-0.1.4-py3-none-any.whl

Download URL lucen_sdk-0.1.4-py3-none-any.whl
Size 1.6 MB
Tags Python 3
SHA-256 checksum
How to use checksums
62917094afc147de60c381a2538ca6c55885f2c330bf602ef1f3e91b6e874a44
BLAKE2b-256 checksum
How to use checksums
0931c27c5e170d5917eb0017bdf50d27e55eb8162e0c243593476eb31d4872a0
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 29, 2026.

Transparency log

Security for lucen-sdk 0.1.4

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 lucen_sdk-0.1.4.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 Oct 29, 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