The secure runtime and control plane for autonomous economic agents.
Project description
Kernell
Run AI agents with automatic cost optimization.
Agent runtime with deterministic economic control (estimate, hold, settle, refund).
Kernell executes agents, estimates cost before running, charges only what is actually used, and refunds the rest automatically. No overpay. No guesswork. Full control.
Quick Demo (60 seconds)
pip install kernell-os-sdk
export KERNELL_API_KEY=your_key
kernell run --task-type financial
Example output:
[Estimate] 0.026000 KERN
[Actual] 0.024000 KERN
[Refund] 0.002000 KERN
[Remaining] 9.976000 KERN
Saved vs estimate: 0.002000 KERN
✔ Economic loop settled
What Just Happened?
Kernell runs every task through a deterministic economic loop:
estimate -> hold -> execute -> capture -> refund -> ledger
- Estimates cost before execution
- Reserves budget (no uncontrolled spend)
- Executes the agent
- Charges only actual usage
- Refunds the difference automatically
Every execution is economically optimized by design.
Why Kernell?
Most agent frameworks focus on execution. Kernell adds what is missing:
- Cost control: prevent uncontrolled token usage
- Deterministic billing: estimate vs actual, always visible
- Automatic refunds: you never overpay
- Execution abstraction: run tasks without micromanaging models
Usage
Run tasks:
kernell run --task-type simple
kernell run --task-type financial
kernell run --task-type multi_agent
Optional flags:
--api-key <your_key>--base-url <http://localhost:8000>--legacy
Environment:
export KERNELL_API_KEY=your_key
export KERNELL_BASE_URL=http://localhost:8000
Architecture (Simplified)
CLI -> API -> ExecutionManager -> SpendGuard -> Ledger
ExecutionManager: orchestrates executionSpendGuard: enforces budget and settlementLedger: records every transaction
Legacy Mode
kernell run --legacy
Uses the previous execution path without full economic guarantees.
Dashboard (Coming Soon)
A visual interface for inspecting executions, costs, and routing decisions is under development.
The current primary interface is the CLI (kernell run).
Experimental: DevLayer
DevLayer is an experimental internal system for building and debugging agents inside Kernell.
It is not yet part of the public workflow.
Future: Marketplace
Kernell may support an agent marketplace where tasks can be executed and settled programmatically.
That would include task publication, agent execution, result validation, and automated payment.
This is not part of the current production flow.
Status
- CLI functional
- Economic execution loop (v2)
- Advanced features are not yet part of the default flow
Roadmap (High Level)
- Persistent ledger
- Improved routing strategies
- Scalable remote execution
- Extended economic layer
Positioning
Kernell is not just an agent runner. It is the execution layer for economically efficient AI agents.
Contributing
Early stage. Feedback is highly valuable.
License
TBD
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 Distribution
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 kernell_os_core-1.0.2.tar.gz.
File metadata
- Download URL: kernell_os_core-1.0.2.tar.gz
- Upload date:
- Size: 558.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49f3434be9992c5c96f93d7f0c6bdb1ffbe60fbc6d4603f09a471e1f06d77e72
|
|
| MD5 |
8e93e78e587f71ff879c44eb7fd223ce
|
|
| BLAKE2b-256 |
9eacce5185cad93507f141f61008cb84c615682e807335870774ebc0b6365fa0
|
File details
Details for the file kernell_os_core-1.0.2-py3-none-any.whl.
File metadata
- Download URL: kernell_os_core-1.0.2-py3-none-any.whl
- Upload date:
- Size: 589.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce1b25474d24db3f90a388a6c4d7168257b42c25b6fa34eb26b0e62ebc8051e1
|
|
| MD5 |
7d612ed70221e42f49dbc657666f9c4e
|
|
| BLAKE2b-256 |
39a5febd78b5d85b2f565357bfac9de61e3771179a6417fadcd7a166db63ad6d
|