Skip to main content

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 execution
  • SpendGuard: enforces budget and settlement
  • Ledger: 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kernell_core-1.0.2.tar.gz (558.0 kB view details)

Uploaded Source

Built Distribution

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

kernell_core-1.0.2-py3-none-any.whl (589.0 kB view details)

Uploaded Python 3

File details

Details for the file kernell_core-1.0.2.tar.gz.

File metadata

  • Download URL: kernell_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

Hashes for kernell_core-1.0.2.tar.gz
Algorithm Hash digest
SHA256 b8b3a89364c53645e7dc6a5ff14351b530e53d35f8c0a2137d0f598d2cdae434
MD5 b70bb44a50e515011fe593d77a9cb49c
BLAKE2b-256 e704f5d50b6a22665aadca86a065b1e516a32a7e0ec7ab602600009f10532901

See more details on using hashes here.

File details

Details for the file kernell_core-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: kernell_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

Hashes for kernell_core-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5bd47ae9cd2aaf7569686e5c6ebc2c21ffc4b063b3aa57812021e692a915b40d
MD5 b9e44aa623539a56be81f79879c389c0
BLAKE2b-256 3a9c63e54e4ae66aa84261996c39c12626e155877faab8aaae64e658554f3701

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