Offline local-LLM terminal app for Jetson and edge Linux: chat with on-device models, run agent tools, and manage context safely.
Project description
open-jet
open-jet ships both:
- the OpenJet Python SDK
- the OpenJet CLI
Install it with:
pip install open-jet
What Is In The Package
This package currently includes:
openjet.sdkfor Python integrations- CLI entrypoints:
openjetandopen-jet - the local/session runtime used by both the SDK and the CLI
So this is not an SDK-only wheel. It is the full OpenJet package, with the SDK exposed as a supported import surface.
SDK Import Path
Use:
from openjet.sdk import recommend_hardware_config
or:
from openjet.sdk import OpenJetSession, create_agent
SDK Surface
The currently exported SDK surface is:
from openjet.sdk import (
HardwareRecommendation,
HardwareRecommendationInput,
OpenJetSession,
RecommendedLlamaConfig,
RecommendedModel,
SDKEvent,
SDKEventKind,
SDKResponse,
ToolResult,
create_agent,
recommend_hardware_config,
)
That covers two main use cases:
- hardware/model recommendation for local
llama.cppsetups - embedded session/chat usage from your own Python application
Hardware Recommendation API
recommend_hardware_config() takes hardware input and returns:
- a recommended model
- recommended llama device settings
- recommended GPU layer count
- recommended context window size
Example:
from openjet.sdk import recommend_hardware_config
result = recommend_hardware_config(
{
"total_ram_gb": 16,
"gpu": "cuda",
"vram_mb": 24576,
"label": "RTX 4090 box",
}
)
print(result.model.label)
print(result.model.target_path)
print(result.llama.device)
print(result.llama.gpu_layers)
print(result.llama.context_window_tokens)
Typed input also works:
from openjet.sdk import HardwareRecommendationInput, recommend_hardware_config
result = recommend_hardware_config(
HardwareRecommendationInput(
total_ram_gb=8.0,
gpu="cpu",
hardware_profile="other",
hardware_override="desktop_8",
)
)
Session API
Use OpenJetSession when you want to embed OpenJet into another Python service, worker, or app.
Basic example:
import asyncio
from openjet.sdk import OpenJetSession
async def main() -> None:
session = await OpenJetSession.create()
try:
result = await session.run("Summarize the current README")
print(result.text)
finally:
await session.close()
asyncio.run(main())
The session API includes:
OpenJetSession.create(...)session.stream(...)session.run(...)session.set_airgapped(...)session.add_turn_context(...)session.clear_turn_context(...)create_agent(...)
The event/response types exposed for integrations are:
SDKEventSDKEventKindSDKResponseToolResult
CLI
This package also installs the CLI:
openjet
or:
open-jet
The CLI and the SDK share the same underlying package and runtime code.
Notes
- This wheel currently ships the wider OpenJet application, not just the SDK subset.
- The SDK is exposed through
openjet.sdk. - If you only need one narrow SDK feature, the package still installs the full declared dependency set for this distribution.
Repository
- Repository: github.com/l-forster/open-jet
- Issues: github.com/l-forster/open-jet/issues
License
AGPL-3.0-only
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file open_jet-0.3.3-py3-none-any.whl.
File metadata
- Download URL: open_jet-0.3.3-py3-none-any.whl
- Upload date:
- Size: 201.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e817b97aa985dfd25c54c7ea2ca67faf7b5292a59e2556f9f6de61d31f97231
|
|
| MD5 |
aa9810eb765afd2ee8317bfe9cd8846e
|
|
| BLAKE2b-256 |
22abc1137ade7f63d8a4c87d62df1495219d11815cf6f65cfd3aad931e262400
|