ByteRun Python SDK
The official Python SDK for ByteRun, an AI infrastructure platform that provides execution environments for Python, SQL and AI agents.
Early preview. Version
0.0.xreserves thebyterunpackage name and sets up the project, and addsbyterun login. The SDK client itself is not ready yet: it can't run code today. In the meantime, try ByteRun in the playground on byterun.io, and follow the roadmap for the first functional release.
What is ByteRun?
ByteRun gives developers managed environments to run code and AI agents without operating the infrastructure themselves. Today that covers Python, SQL and agent execution; the platform roadmap also includes headless jobs, workflows and inference. See the platform overview for details.
What this SDK is for
This SDK is meant to be the single Python entry point to ByteRun, so you can work with the platform from your own code, scripts and services. AI agent execution comes first; other platform capabilities will be added to the same package rather than split into separate ones.
What is planned, in no fixed order and subject to change: projects, code and agent execution, files, SQL, headless jobs, workflows and inference. None of this is available yet.
Installation
Requires Python 3.10 or newer.
pip install byterun
Check that it installed:
python -c "import byterun; print(byterun.__version__)"
The package currently exposes byterun.__version__ and the byterun login / byterun logout
commands below. API documentation and usage examples will appear here once the client is released.
Logging in from the command line
pip install byterun
byterun login # opens your browser; approve the request, and a key is saved on this machine
byterun logout # revokes this machine's key and deletes the saved credentials
byterun login prints a short code and a link, opens the link in your browser and waits. Check
that the code on the page matches the one in your terminal before you approve, and only approve a
login you started. Each machine gets its own key (limited to your starter project, 90 days), so
revoking one never affects another. You can see and revoke keys in Settings on byterun.io.
--no-browseronly prints the link, for SSH and headless machines: open it on any device.--forcelogs in again even if this machine is already logged in. The new key is saved first, then the old one is revoked.byterun logout --local-onlyonly deletes the local file; the key stays valid until revoked.- Exit codes:
0success,1failure (denied, expired, network),2usage error,130Ctrl+C.
The key is stored in ~/.config/byterun/credentials.json (or under $XDG_CONFIG_HOME), a 0600
file in a 0700 directory, and is never printed. The SDK talks to https://api.byterun.io; set
BYTERUN_API_URL only to point at another deployment. A key is accepted on the API host only.
A key lets code run in your project's container with that project's privileges. ByteRun is not a sandbox for untrusted code: treat the key like a password.
Naming
| Where | Name |
|---|---|
| PyPI package | byterun |
| Python import | byterun |
| GitHub repository | byterun-python |
Feedback and contributions
Questions, ideas and bug reports are welcome as GitHub issues. The API is still being designed, so please open an issue to discuss before sending a large pull request.
Links
- Website: https://byterun.io/
- Platform: https://byterun.io/platform
- Roadmap: https://byterun.io/roadmap
- PyPI: https://pypi.org/project/byterun/
- Source: https://github.com/byterunio/byterun-python
License
Licensed under the Apache License, Version 2.0. Unless required by applicable law or agreed to in writing, the software is distributed on an "AS IS" basis, without warranties or conditions of any kind.
Metadata
Release files for byterun 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| byterun-0.0.3.tar.gz | 20.2 kB | With provenance | Details for byterun-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| byterun-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for byterun-0.0.3-py3-none-any.whl |
Total release size: 37.8 kB
Release files / byterun-0.0.3.tar.gz
| Download URL | byterun-0.0.3.tar.gz |
|---|---|
| Size | 20.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d97f95e7baeb7336a95faabc93ea6b90b2221b6c954e925acd6136bd9bb2e66c
|
|
BLAKE2b-256 checksum How to use checksums |
a31f5256067f9b5e124e50028ad4ccce4d8c8990ae0e7d60a2ca0eb93130e059
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Dec 1, 2026.
Transparency logRelease files / byterun-0.0.3-py3-none-any.whl
| Download URL | byterun-0.0.3-py3-none-any.whl |
|---|---|
| Size | 17.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3dc4dfa425bf3631ca4c3eaa579f01f3ca5561520c8a238a211a4f7a32ef63fd
|
|
BLAKE2b-256 checksum How to use checksums |
c4da6dd69bfb87c6759a5068a51b2d4fd7c7147c5607440568c67702ce873378
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Dec 1, 2026.
Transparency logSecurity for byterun 0.0.3
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.
Attestation for byterun-0.0.3.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 Dec 1, 2026.
Transparency logA 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.