Skip to main content

Nightshift — autonomous agent orchestrator with Firecracker VMs

Project description

Kokapo

Nightshift

Platform for securly running Agents with incredible devX

PyPI

Website · Docs · Slack


Nightshift

Nightshift runs AI agents in isolated Firecracker microVMs on bare-metal infrastructure. Each agent gets its own microVM with a dedicated filesystem, network, and resource limits; so agents can execute code, edit files, and make network calls without affecting the host or each other.

Installation

uv add nightshift-sdk

or

pip install nightshift-sdk

Quick Start

Define an agent with NightshiftApp and AgentConfig:

from nightshift import NightshiftApp, AgentConfig
from claude_agent_sdk import query, ClaudeAgentOptions

app = NightshiftApp()

@app.agent(
    AgentConfig(
        workspace="./my-project",
        vcpu_count=2,
        mem_size_mib=2048,
        timeout_seconds=1800,
    )
)
async def code_reviewer(prompt: str):
    async for message in query(
        prompt=prompt,
        options=ClaudeAgentOptions(
            cwd="/workspace",
            allowed_tools=["Read", "Glob", "Grep"],
            model="claude-sonnet-4-6",
        ),
    ):
        yield message

Deploy to a platform running Nightshift:

nightshift login --url https://api.nightshift.sh
nightshift deploy agent.py
nightshift run code_reviewer --prompt "Review the auth module for security issues" --follow

Documentation

Full documentation at docs.nightshift.sh.

License

Apache 2.0 — see LICENSE.

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

nightshift_sdk-0.4.1.tar.gz (135.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nightshift_sdk-0.4.1-py3-none-any.whl (47.6 kB view details)

Uploaded Python 3

File details

Details for the file nightshift_sdk-0.4.1.tar.gz.

File metadata

  • Download URL: nightshift_sdk-0.4.1.tar.gz
  • Upload date:
  • Size: 135.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for nightshift_sdk-0.4.1.tar.gz
Algorithm Hash digest
SHA256 cdbd9c900a5959fed66d6135d4d33cb98f54e20aea942f8fac25807b3cda4c55
MD5 b165a914e2db9d50e4ea9d30bcfba80d
BLAKE2b-256 532de758b61eb70eb056dbc3a5d57877c3c4097b2facc2ee647c263a4aba298e

See more details on using hashes here.

File details

Details for the file nightshift_sdk-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: nightshift_sdk-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 47.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for nightshift_sdk-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4f74f6141df469199026a5dec84812d1ef61a4aba68f80c7d80079ba4c929a73
MD5 6aa89a8333eceec90913afc035a080ff
BLAKE2b-256 a585fd682a9311a06423dab736f0be281c499f5a5225dea1cf0ebbd3dd1eee0d

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