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.0

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.0
File Size Uploaded
libertai_agentkit_plugin-0.1.0.tar.gz 4.2 kB Details

Built distribution (wheel)

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

Total release size: 10.8 kB

Release files / libertai_agentkit_plugin-0.1.0.tar.gz

Download URL libertai_agentkit_plugin-0.1.0.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
35941307691aa3c1ff2669c58eab137237f666dd4f42ba5238747d3d4f416f07
BLAKE2b-256 checksum
How to use checksums
3940291d9940885c9503fc25366dff2287987f01efcbf13aaeed3262771385b0
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 17, 2026.

Transparency log

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

Download URL libertai_agentkit_plugin-0.1.0-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
df7df5942570aac733462da94e9fc6b4b02567b495934783c16f89807e190e80
BLAKE2b-256 checksum
How to use checksums
b478ae9dc32c9e7416be56896e476ebd7150eb5f2ed0d4f368b20794989a6ef7
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 17, 2026.

Transparency log

Release history Release notifications | RSS feed

0.1.1

2 release files

This release

0.1.0 This release

2 release files

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