Skip to main content

libertai-agentkit-plugin

Build autonomous agents that pay for their own compute and inference — powered by Coinbase AgentKit, Aleph Cloud, and LibertAI.

Includes an OpenAI-compatible LLM client (paid via x402), Aleph credit management tools, and AgentKit-to-OpenAI tool-calling helpers.

Install

pip install libertai-agentkit-plugin

Quick start

import asyncio
from coinbase_agentkit import AgentKit, AgentKitConfig
from coinbase_agentkit.wallet_providers import EthAccountWalletProvider

from libertai_agentkit_plugin import (
    create_llm_client,
    create_agent_wallet,
    actions_to_tools,
)
from libertai_agentkit_plugin.actions.aleph import AlephActionProvider

PRIVATE_KEY = "0x..."

async def main():
    # 1. Create wallet
    wallet_provider = create_agent_wallet(PRIVATE_KEY)

    # 2. Set up AgentKit with action providers
    agentkit = AgentKit(AgentKitConfig(
        wallet_provider=wallet_provider,
        action_providers=[AlephActionProvider(PRIVATE_KEY)],
    ))

    # 3. Convert actions to OpenAI tools
    tools, execute_tool = actions_to_tools(agentkit.get_actions())

    # 4. Create x402-enabled LLM client
    client = create_llm_client(PRIVATE_KEY)

    # 5. Use in a chat completions loop
    response = await client.chat.completions.create(
        model="qwen3.5-35b-a3b",
        messages=[{"role": "user", "content": "Check my balances"}],
        tools=tools,
    )
    print(response.choices[0].message.content)

asyncio.run(main())

License

MIT

Metadata

Release files for libertai-agentkit-plugin 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for libertai-agentkit-plugin 0.1.1
File Size Uploaded Provenance Actions
libertai_agentkit_plugin-0.1.1.tar.gz 4.2 kB With provenance Details for libertai_agentkit_plugin-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for libertai-agentkit-plugin 0.1.1
File Interpreter ABI Platform Actions
libertai_agentkit_plugin-0.1.1-py3-none-any.whl Python 3 none any Details for libertai_agentkit_plugin-0.1.1-py3-none-any.whl

Total release size: 10.8 kB

Release files / libertai_agentkit_plugin-0.1.1.tar.gz

Download URL libertai_agentkit_plugin-0.1.1.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
c157d4a2f1f1a4b695b86ee3550cc8027eca2a6a8bf8f62e1ce0112ac9b2ba02
BLAKE2b-256 checksum
How to use checksums
9b9491c2310656308793970feb1f48cf530c46ec1782e724b7b423365b0a9e3b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 19, 2026.

Transparency log

Release files / libertai_agentkit_plugin-0.1.1-py3-none-any.whl

Download URL libertai_agentkit_plugin-0.1.1-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5cc6dc35d0a4739556e2998e4c70e3d32feb0c5b6a9b7fc4fcad24b625e5173f
BLAKE2b-256 checksum
How to use checksums
805192e13bcf2953b020adc75c8832ea8a7769f0973fa426e5131d999e6924c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 19, 2026.

Transparency log

Security for libertai-agentkit-plugin 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for libertai_agentkit_plugin-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 19, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page