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.1.0.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.1.0-py3-none-any.whl (589.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kernell_core-1.1.0.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.1.0.tar.gz
Algorithm Hash digest
SHA256 c869070d19a5e72c4f14e7b2eca529ef36e888f112551e3d5b5a85936221f19a
MD5 7a2e0879a9c09302e5072585cda8c6c1
BLAKE2b-256 e60b670ae97370af3916fca5b02469e24e6e882a9e646e6aa19384a8914c179d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: kernell_core-1.1.0-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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4854ef0ef928a86ded473709be80de793bb5cca4443fb178b326fa73bf8ad083
MD5 949560694dd4a228355ee1281f497a4c
BLAKE2b-256 e49c5cbe015ec301c3b09a5c6a33a14f1bb5b1c109044507c77c244045e07af0

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