---
name: sento-agent-launch
description: Launch a SENTO token on Base using the bundled CLI and an authorized runtime signing key. Handles launch configuration, quote checks, approvals, local signing, broadcasting, receipt confirmation and recovery.
---

# SENTO agent launch

Use this reference pack from a terminal-enabled agent with **Node 22.18+**, code execution and network access. The user gives the launch intent; the agent installs dependencies, writes the task configuration and runs the CLI. Do not make the user edit files, configure a browser wallet or run commands by default.

SENTO Public API is `https://sento.fun/sento-api/pub-api`; it requires **no API key**. The CLI signs locally and broadcasts through Base RPC. See the pack's `README.md` and the [complete API reference](https://sento.fun/docs/api-reference.md) for the contract and CLI options.

## Execute the user's launch

1. **Resolve the signer automatically.** Use `SENTO_PRIVATE_KEY`, or `PRIVATE_KEY` when the former is absent, from the authorized runtime environment. If both are present and differ, stop with a key-conflict error. The CLI derives `creator`; it can be omitted from the task file. An explicit creator must match. Do not print, copy into a task file, log or send the key to the API. Use `SENTO_RPC_URL` when available; otherwise use `https://mainnet.base.org`. Do not require the user to configure an RPC or signer separately when the environment already contains the key.
2. **Build the task file yourself.** Preserve the user's name, ticker case/Chinese characters, mechanism, quote, metadata and approved opening-buy amount. This CLI version supports one quote and a fixed positive `dev_buy` decimal string; it does not support `dev_buy_percent` or multiple quotes. Use the exact live quote address, with `""` or zero address for native ETH. Set `weight_bps:10000`. The public route requires an opening buy worth at least USD 1.
3. **Set internal budgets.** A task may contain only `{"launch":{...}}`. Missing limits default to `maxQuoteSpend` equal to the fixed opening buy and `maxGasCostEth:"0.002"`. The latter is an **L2 execution-gas guard**, not a promise covering every Base L1/L2 network fee. Explicit user budgets take priority; never increase them silently. If funds, fees or limits do not permit execution, report the actual shortfall or limit error.
4. **Run the tool yourself.** In the reference-pack directory, install dependencies with `npm install --ignore-scripts`. Write `launch.json` using the user's approved settings. Optionally validate locally with `npm run agent:launch -- --config launch.json --check`, then execute an authorized launch:

   ```sh
   npm run agent:launch -- --config launch.json --execute
   ```

   Respect the environment's execution policies, signer permissions and user spending authorization. Do not add another conversational confirmation solely for expected API-managed charges or omitted optional metadata. The user configures token tax only; do not add charges again to the returned transaction value.
5. **Finish and recover.** Let the CLI check quotes, build, confirm required approvals in order, rebuild, sign, broadcast and inspect the receipt. Preserve its transaction hashes and checkpoint. Resume with the **same config and state** after an interruption; never create a fresh state to compensate for a pending or uncertain submission. A build response, predicted address or hash alone is not confirmed issuance. Report the token address and transaction hash only after the successful receipt and matching launch event; token-info indexing may still be pending.

## Launch settings

Templates are Classic `1`, Staking `5`, Tax `6`. Staking omits `tax` and `creator_recipients`. Tax uses separate `buy_bps` and `sell_bps` from `100` to `500` in steps of `100`; **`100` is a 1% token-tax example**, not a default selected for the user. `dividend_bps:10000` assigns the entire creator share to holders; partial dividends use `1`–`9999`. Recipient shares split the non-dividend remainder, with up to five addresses totaling `10000` bps. Follow the actual user request rather than adopting example settings.

## Images

- A stable public HTTPS image URI can go directly into `launch.image_uri`; IPFS conversion is not required. `ipfs://` and `ar://` are also supported.
- For an attachment or generated image, retrieve the original file bytes/path through the available tool and save the original file when necessary. A visible preview or local file is not a public URI.
- When an authorized upload tool exists, the CLI can use `--image <path> --uploader <adapter-path>`. The adapter receives file information as JSON on stdin and must return `{"image_uri":"..."}` on stdout. Use a real available adapter; do not invent one or expose the signing key to it.
- The Public API currently provides no image-upload endpoint. If original-file access or an authorized uploader is missing, state that exact capability gap. Do not claim the image was uploaded, silently omit a requested image, or publish a local path, attachment ID, Base64 string or placeholder CID.
