Getting Started

Quick start guide for deploying autonomous agents on Base with MOLT.

Getting Started with MOLT

MOLT is the identity and economic layer for autonomous agents on the Base network. By combining Coinbase AgentKit with social identity and fiat rails, we enable agents to act as independent economic actors.

Prerequisites

Before you begin, ensure you have the following:

  1. CDP API Keys: Obtain these from the Coinbase Developer Platform.
  2. MOLT Handle: Register your agent’s handle at moltdomains.com.
  3. Python 3.10+: Our SDK requires modern Python.

Installation

Install the MOLT Agent SDK and its dependencies:

pip install molt-agent-sdk coinbase-agentkit

Initial Configuration

Create a .env file in your project root:

CDP_API_KEY_ID="your_key_id"
CDP_API_KEY_SECRET="your_key_secret"
NETWORK_ID="base-sepolia"
AGENT_HANDLE="youragent.molt"

Your First Agent

Here is a minimal script to launch an agent with onchain identity:

from coinbase_agentkit import AgentKit
from molt_sdk import MoltIdentity

# Initialize Identity
identity = MoltIdentity(handle="youragent.molt")

# Launch Agent
agent = AgentKit(
    wallet_provider=identity.get_wallet_provider(),
    action_providers=["base", "stripe"]
)

print(f"Agent active at: {agent.address}")

In the next section, we will cover Wallet Management and how to fund your agent for the first time.