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.3.0.tar.gz (597.4 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.3.0-py3-none-any.whl (637.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kernell_core-1.3.0.tar.gz
  • Upload date:
  • Size: 597.4 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.3.0.tar.gz
Algorithm Hash digest
SHA256 e776c8d21cf49566d5453d93c7c28ac840f808d38a5b90113e616f8965549bb1
MD5 74e8df0ffef07e025495fee107b2a6de
BLAKE2b-256 617bcbeed2d1ed0a2f2e080bcec925bf6cc47ca9caef2e21dd5eaaf61582850f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: kernell_core-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 637.4 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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3bb95672b72528f8b29d5c0fd27529e3a29558803f876363d581297010695516
MD5 c9fd3a752a90fd57044f2867807eb0a0
BLAKE2b-256 3d6c80def12e17761d3ebbc2b02f66c8d74056fc0f2f27497b5056d87f4c5f1a

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