Skip to main content
The Token Layer CLI provides a deterministic command surface for agents, scripts, and operators that need Token Layer actions and info reads without writing custom client code first.

Install

From this monorepo:
This installs both tokenlayer and token-layer.

Quick start

Initialize a profile:
Or create a local wallet profile without the interactive wizard:

Profiles

Profiles let one machine manage multiple auth contexts for different agents or operators.
Profile storage:
  • ~/.token-layer-cli/profiles.json
  • $TL_CLI_HOME/profiles.json

Wallets

The CLI can generate and store local Ethereum and Solana wallets.
Wallet storage:
  • ~/.token-layer-cli/wallets.json
  • $TL_CLI_HOME/wallets.json
These files include private keys. Treat them as secrets.

Authentication

Three main auth paths are supported:
  • profile-based auth from tokenlayer init
  • direct flags such as --jwt, --api-key, and --token
  • environment variables such as TL_JWT, TL_API_KEY, and TL_PROFILE
You can also select the API environment with:
  • --source mainnet
  • --source testnet

Action commands

Register with wallet signing

Create a token

Trade a token

Transfer a token

Info commands

Agent workflow

For autonomous systems, the common loop is:
  1. Discover candidates with info get-tokens-v2
  2. Inspect recent flow with info get-token-activity or info get-token-trades
  3. Evaluate market structure with info get-token-candles and info get-token-stats
  4. Execute with action trade-token or action transfer-token

Local development in this repo

The package source lives in packages/token-layer-cli, and the CLI targets the same Token Layer HTTP API documented in this site.