Skip to main content

Osprey

CI PyPI Python 3.11+ License: BSD 3-Clause DOI Documentation

An agentic interface to scientific control systems.

Osprey addresses control-specific challenges: semantic addressing across large channel namespaces, protocol-agnostic integration with control stacks, logbook search across facility electronic logbooks, and mandatory human oversight for every hardware write.

Built for large scientific facilities, such as particle accelerators.

Osprey system architecture, from operator to facility, with the safety gate and approval workflow in-line.

Quick start

# Install the framework as a standalone CLI tool (using uv, recommended).
# A pre-release needs the flag: uv tool install --prerelease allow osprey-framework
uv tool install osprey-framework

# Create a minimal deployment repo to verify your setup
osprey init quickstart --preset hello-world
cd quickstart

# init seeds .env from the provider keys your shell exports, and says so.
# When it reports none, copy the example and fill it in:
# cp .env.example .env

# Render the deployment, then open the web terminal
osprey build
osprey web

For a deployment tailored to your detector, beamline, or accelerator subsystem, install the osprey plugin and run its guided setup skill from your agent session:

claude plugin marketplace add als-apg/osprey --sparse .claude-plugin plugins
claude plugin install osprey@osprey

Then start the agent in an empty directory and type /osprey:setup. The skill walks you through a guided conversation and produces the deployment repository — a git repository whose profile.yml is the source of truth. From inside it, osprey build renders the ready-to-run deployment into build/.

The facility lives in data/facility/ of the deployment repository: the records, limits, models, scenarios and knowledge you author, and under imported/<layer>/ what an importer such as osprey facility import mml writes. osprey build turns that tree into the facility file and its views under build/; osprey facility show prints the result.

Key features

  • Agent-driven orchestration — Skills, MCP tools, and explicit dependency declarations let the Osprey agent decompose operator requests into auditable steps with mandatory approval gates.
  • Control-system safety — Pattern detection, channel boundary checking, and mandatory human approval for every hardware write.
  • Protocol-agnostic integration — EPICS, DOOCS, TANGO, and Mock connectors ship in-tree; LabVIEW and other stacks connect through the connector interface.
  • One agent, any model — Claude Code is the agent harness, the model behind it is a configuration choice, and the code specific to Claude Code sits in one adapter package.
  • Scalable capability management — Dynamic classification prevents prompt explosion as toolsets grow.

Documentation

Read the full documentation →

Osprey follows CalVer (vYYYY.M.P). Public APIs may change between releases — pin a version and check the changelog before upgrading.

Contributing

Contributions are welcome. See the Contributing Guide for development setup, coding standards, and the pull-request workflow. To report a security issue, please follow the security policy rather than opening a public issue.

Citation

If you use Osprey in your research, please cite the paper. GitHub's Cite this repository button, in the sidebar, exports BibTeX and APA directly.

License

BSD 3-Clause — see LICENSE.txt. Additional notices, including the U.S. Department of Energy's retained rights and Berkeley Lab's Enhancements grant, are in NOTICE.

Copyright (c) 2025, The Regents of the University of California, through Lawrence Berkeley National Laboratory (subject to receipt of any required approvals from the U.S. Dept. of Energy). All rights reserved.

Questions about your rights to use or distribute this software: contact Berkeley Lab's Intellectual Property Office at IPO@lbl.gov.

Metadata

Release files for osprey-framework 2026.11.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 osprey-framework 2026.11.1
File Size Uploaded Provenance Actions
osprey_framework-2026.11.1.tar.gz 38.6 MB With provenance Details for osprey_framework-2026.11.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for osprey-framework 2026.11.1
File Interpreter ABI Platform Actions
osprey_framework-2026.11.1-py3-none-any.whl Python 3 none any Details for osprey_framework-2026.11.1-py3-none-any.whl

Total release size: 50.7 MB

Release files / osprey_framework-2026.11.1.tar.gz

Download URL osprey_framework-2026.11.1.tar.gz
Size 38.6 MB
Tags Source
SHA-256 checksum
How to use checksums
de25cd0953ba6dd1b6763d29904d288133d147f603cda1da0a49404d00cf035d
BLAKE2b-256 checksum
How to use checksums
5c19b83e616b5d3840a5a49c1bf8c512602c113f6ebd9be5ae12f72654614e5e
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 Nov 22, 2026.

Transparency log

Release files / osprey_framework-2026.11.1-py3-none-any.whl

Download URL osprey_framework-2026.11.1-py3-none-any.whl
Size 12.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
139c838eec077a7cfad89f89c2a588e6fa31bb3860f40b6c8d6b15b7fb2d6242
BLAKE2b-256 checksum
How to use checksums
798da5c928945e9d0484bed4d7ddd7b4211a79e493f6005e2318e0582d59f01a
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 Nov 22, 2026.

Transparency log

Security for osprey-framework 2026.11.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 osprey_framework-2026.11.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 22, 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.

Release history Release notifications | RSS feed

This release

2026.11.1 This release

2 release files Full provenance

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