Non-custodial burner-wallet toolkit for AI agents. Your agent holds its own key and signs + posts directly — make a fresh wallet, read balance, send, and swap in a few lines. No MetaMask, no GUI, no account.
Project description
chain-signer
Give your AI agent its own non-custodial wallet in one line. Make a fresh (burner) wallet, check balance, send, and swap — your agent holds its own key and signs locally. No MetaMask, no browser, no account, no custody.
Install
pip install chain-signer
export ETHERSCAN_API_KEY=... # for live balance reads + broadcast (Etherscan v2)
Bitcoin/Solana support is optional: pip install "chain-signer[all]".
Quickstart (5 lines)
from chain_signer import burner, send_ether
from chain_signer.balance import get_balance
w = burner() # fresh throwaway wallet; the agent owns w.private_key
print(w.address, get_balance(w)) # live on-chain balance
send_ether(w, "0x...recipient", 0.001) # auto nonce+gas, signed locally, broadcast
That's it — your agent just held a wallet and moved funds, no human in the loop.
Try it offline in 2 seconds (no key, no funds, no network)
pip install chain-signer
python examples/quickstart.py # makes a wallet, signs, proves it recovers + encrypts the key
What you get
burner()— a fresh wallet for a one-off task; discard it when done.restore(key)— reload a wallet later from its exported private key (same key → same address).send_ether(w, to, amount)— send in ETH (not wei); nonce, gas, and broadcast handled for you.get_balance(w)— live balance from the chain (Etherscan v2 indexer, not a flaky public RPC).swap(...)— token swaps via 0x/Paraswap.- Optional Solana + Bitcoin wallets via the
[all]extra.
Non-custodial guarantee
The private key is generated/loaded locally, used only to sign, and never logged, returned, or stored by this library. You hold the key; we never touch your funds. That is the whole design.
Handling the key (read this)
w.private_key is the keys to the wallet. Treat it like a password:
- NEVER log it, print it in production, or write it into notes/memory/chat. Anyone who has it controls the funds.
- For a burner holding a few dollars this is low-stakes by design — but the rule still holds.
- To reuse a wallet later, store the key in a secret manager / env var, then
restore(key). - Better:
export_encrypted(w, password)gives a password-protected keystore dict to store at rest;load_encrypted(keystore, password)brings the wallet back. Never store the raw key if you can store the keystore.
Signing idiom (note for web3.py users)
The wallet does not expose sign_transaction / sign_message methods. Signing is done by
function helpers you pass the wallet to — e.g. send_ether(w, to, amount) signs and broadcasts,
and sign_message(w, "text") returns an EIP-191 signature for auth / sign-in flows
(recoverable via eth_account Account.recover_message).
CLI on PATH
pip install may warn that the chain-signer script dir isn't on your PATH. The library works
regardless; to use the CLI directly, add that dir to PATH or run python -m chain_signer ....
Tool surface (for any AI / MCP / CLI)
chain_signer.mcp_server exposes list_tools() and call_tool(name, arguments). CLI:
python -m chain_signer list
python -m chain_signer call create_wallet '{"chain":"evm"}'
Responsible use
General-purpose, non-custodial tooling. You are responsible for using it within the laws and terms of service that apply to you. Not intended or marketed for any restricted or prohibited trading in your jurisdiction.
Notes
- Balances/broadcast use the Etherscan v2 indexer (authoritative), never a free public RPC.
- Low-level building blocks (
tx.send,call_contract, explicit nonce/gas) remain available for advanced use.
Run as an MCP server
chain-signer is also a Model Context Protocol (MCP) server, so MCP-aware agents can use it directly:
pip install chain-signer
chain-signer-mcp # speaks MCP over stdio (JSON-RPC 2.0)
Exposes 6 tools: create_wallet, get_balance (balance), send, call_contract, swap, bridge.
Wire it into any MCP client (Claude Desktop, Cursor, etc.) by adding it to the client's
mcpServers config:
{
"mcpServers": {
"chain-signer": {
"command": "chain-signer-mcp",
"env": { "ETHERSCAN_API_KEY": "your-key-for-live-balance-and-broadcast" }
}
}
}
That's all — the agent can now make a wallet, read balances, send, and swap as native tools.
(ETHERSCAN_API_KEY is optional; needed only for live balance reads and broadcasting.)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file chain_signer-0.1.10.tar.gz.
File metadata
- Download URL: chain_signer-0.1.10.tar.gz
- Upload date:
- Size: 74.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
95ab08f1d07376c9bdb1c2550bc991800dca30c13d4b6d9dd73ada8a354ff329
|
|
| MD5 |
3f8c1a3951130d2bd0aaadabad08cdd6
|
|
| BLAKE2b-256 |
b99f212dd2869e1c35206a6cac0587174b122186ea7ee55945c0099a317c0074
|
Provenance
The following attestation bundles were made for chain_signer-0.1.10.tar.gz:
Publisher:
release.yml on Kevthetech143/chain-signer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
chain_signer-0.1.10.tar.gz -
Subject digest:
95ab08f1d07376c9bdb1c2550bc991800dca30c13d4b6d9dd73ada8a354ff329 - Sigstore transparency entry: 1698196500
- Sigstore integration time:
-
Permalink:
Kevthetech143/chain-signer@72348056fbcd9a4c7e4e3e991adb87093074cb06 -
Branch / Tag:
refs/tags/v0.1.10 - Owner: https://github.com/Kevthetech143
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@72348056fbcd9a4c7e4e3e991adb87093074cb06 -
Trigger Event:
push
-
Statement type:
File details
Details for the file chain_signer-0.1.10-py3-none-any.whl.
File metadata
- Download URL: chain_signer-0.1.10-py3-none-any.whl
- Upload date:
- Size: 23.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a43ed7ef2feb9157316c6d3408fd43eb74ff6424498abd6e3242b9ecdf85a70
|
|
| MD5 |
757c3b2670d993efb639949546b41ac3
|
|
| BLAKE2b-256 |
6c5b8650bb000bd56bac0cd7c005c788370db16c221b08d92c2ec29f61dc06ab
|
Provenance
The following attestation bundles were made for chain_signer-0.1.10-py3-none-any.whl:
Publisher:
release.yml on Kevthetech143/chain-signer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
chain_signer-0.1.10-py3-none-any.whl -
Subject digest:
0a43ed7ef2feb9157316c6d3408fd43eb74ff6424498abd6e3242b9ecdf85a70 - Sigstore transparency entry: 1698196603
- Sigstore integration time:
-
Permalink:
Kevthetech143/chain-signer@72348056fbcd9a4c7e4e3e991adb87093074cb06 -
Branch / Tag:
refs/tags/v0.1.10 - Owner: https://github.com/Kevthetech143
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@72348056fbcd9a4c7e4e3e991adb87093074cb06 -
Trigger Event:
push
-
Statement type: