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.0.tar.gz (131.2 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.0-py3-none-any.whl (47.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nightshift_sdk-0.4.0.tar.gz
  • Upload date:
  • Size: 131.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.12

File hashes

Hashes for nightshift_sdk-0.4.0.tar.gz
Algorithm Hash digest
SHA256 9290c168ae528d3646057eb444520ef0ab009b870f49bb7113d01ff3ac9fd104
MD5 99cbe9a7603137a9c3e538c56627007d
BLAKE2b-256 c24e063cb31fc877dda5250b3cc4547cb358288a4799987af91c192898c3f9a8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nightshift_sdk-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 124611002e8539709b44bcb13d4d9fe28172f141310ace639b7b2edaf9cbc0a2
MD5 a94247088c635094a29ab8f4cc7be9eb
BLAKE2b-256 52ee82bc665aaeab030dc27b6935c269454ae354b2e21e74f07afed166890674

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