Skip to main content

AgeOS MVP

AgeOS is a Linux-first local agent runtime for sandboxed agents, local LLM routing, GPU/RAM-aware scheduling, and Python integration shims.

Install From Source

./scripts/install-deps.sh
./scripts/build.sh
ageos --help

./scripts/build.sh performs a system-wide source install: native binaries go under /usr/local, the managed Python runtime goes under /opt/ageos, and global launchers are linked into /usr/local/bin. This avoids Ubuntu's system Python pip restrictions while still making ageos available on PATH for every shell. The MVP expects llama-server on PATH for the default local backend. vLLM is optional and installed with:

sudo /opt/ageos/bin/python -m pip install ".[vllm]"

Commands

ageos poc --speciality default-instruct
ageos prompt --speciality code-review --structure example.json --text "Review this diff"
ageos run --binary ./agent.py --niceness 10
ageos ps
ageos queue --watch
ageos dashboard

--niceness is an AgeOS resource priority only. It controls GPU admission, RAM/VRAM budgets, model eviction, and memory-pressure behavior. It does not call Linux nice, setpriority, or ionice.

Examples

Run the basic Python shim agent through the AgeOS sandbox:

ageos run --binary ./examples/basic_agent.py --speciality default-instruct --memory 16G

The agent prints its AgeOS environment, calls the OpenAI-style Python shim, and prints the local model response.

RAM States

AgeOS tracks three memory pressure states:

  • available: jobs admit normally; niceness controls tie-breaks and preload order.
  • low: lower niceness agents receive RAM/VRAM first; background jobs wait.
  • no_ram: low-priority work is queued or rejected; only highest-priority jobs can run after idle models are freed.

Sandbox

ageos run is Linux-only. The native sandbox uses namespaces, read-only mounts, dropped capabilities, no-new-privs, seccomp when available, Landlock hook points, and cgroups v2. Agents do not receive direct GPU device access and must request inference through AgeOS.

For local development on non-Linux platforms only:

ageos run --binary ./agent.py --unsafe-no-sandbox

Python Shims

from ageos.integrations.openai_shim import AgeosOpenAI

client = AgeosOpenAI(speciality="code-review", niceness=5)
response = client.chat.completions.create(
    model="ignored",
    messages=[{"role": "user", "content": "hello"}],
)
print(response.choices[0].message.content)

Packaging Targets

  • Snap Store: ageos and optional ageos-vllm
  • APT/PPA: ageos, ageos-vllm
  • PyPI: ageos

Release automation lives in .github/workflows/release.yml. Push a v* tag to build Python, Debian, and Snap artifacts, attach them to a GitHub Release, and publish to configured stores. TestPyPI publishing requires the TEST_PYPI_API_TOKEN repository secret. PyPI publishing requires the PYPI_API_TOKEN repository secret. Snap Store publishing requires the SNAPCRAFT_STORE_CREDENTIALS repository secret and currently releases the devel snap to the edge channel.

Metadata

Release files for ageos 0.1.0

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

Source distribution (sdist)

Source distribution for ageos 0.1.0
File Size Uploaded Provenance
ageos-0.1.0.tar.gz 21.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ageos 0.1.0
File Interpreter ABI Platform
ageos-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 50.9 kB

Release files / ageos-0.1.0.tar.gz

Download URL ageos-0.1.0.tar.gz
Size 21.5 kB
Tags Source
SHA-256 checksum
How to use checksums
1d44a1b2355aea505e0f76ad50e7d7fbd7b1a98cdff784e750363acedcf674b0
BLAKE2b-256 checksum
How to use checksums
f73207f78ab4aae5fe788aa37869bb6c53bd655c50cec967e02bf17001ee54a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release files / ageos-0.1.0-py3-none-any.whl

Download URL ageos-0.1.0-py3-none-any.whl
Size 29.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cf1c9b60423b3fd4d98f1ba71c3bb8a472d91991e5bf90c99b1a92e7161aa6a0
BLAKE2b-256 checksum
How to use checksums
94b289eaabd190e89c7087e118fcfad6a1fe90bc177899616d24c937b9107646
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Security for ageos 0.1.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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

0.1.0 This release

2 release files No 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