Skip to main content

Cage: run local-LLM components in a network-isolated OS process, hardware access intact, with a friction-free call interface back to the rest of your app.

Project description

Cage (llm-cage)

Status: placeholder release — reserving the name while the project is designed. Not yet functional.

Cage runs a local-LLM component of your application inside a separate OS process with network access denied by default (loopback allowed, for talking to a local model server), while keeping local hardware acceleration (GPU/Metal/CUDA) intact and giving you a friction-free way to call into it from the rest of your app:

from cage import Cell

cell = Cell()

@cell.expose
def ask_local_llm(prompt: str) -> str:
    import ollama
    return ollama.chat(model="llama3", messages=[{"role": "user", "content": prompt}])["message"]["content"]

answer = ask_local_llm("what's 2+2?")  # runs inside the network-restricted process

Design details are being worked out as a public RFC series before implementation starts. This release exists solely to reserve the package name.

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

llm_cage-0.0.1.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

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

llm_cage-0.0.1-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file llm_cage-0.0.1.tar.gz.

File metadata

  • Download URL: llm_cage-0.0.1.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for llm_cage-0.0.1.tar.gz
Algorithm Hash digest
SHA256 a0a071a1658804ec95eb9d79e002e5de4da0c500820cf88877ba5fc4ffff3beb
MD5 b29847b69de43ec74ef6f87d69ef0a5f
BLAKE2b-256 90ffc2935c44371c41552c96a55b458dcd8abd86c5021375cfcb53b5d7af4b1a

See more details on using hashes here.

File details

Details for the file llm_cage-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: llm_cage-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for llm_cage-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4adaf9877d0dd75475dd7ad2c5de23d2f9e9db3030f047d7b16d90ce83a91d1b
MD5 4ec96829aaa414b983a12f0c4e7f87e3
BLAKE2b-256 faeaa8eef99335cc1a2d98f3bfc4dbf3a9a85a4e01b0a2ae29f28993f199ea38

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