> For the complete documentation index, see [llms.txt](https://docs.hipersnipe.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hipersnipe.com/admin/commands-reference.md).

# Admin commands reference

Commands available when your Telegram user ID is in `ADMIN_USER_IDS`.

## User-facing admin commands

| Command                               | Description                                 |
| ------------------------------------- | ------------------------------------------- |
| `/addpartner <channel_id> <ref_code>` | Register partner channel mapping            |
| `/removepartner <channel_id>`         | Remove partner mapping                      |
| `/grant_promo`                        | Start promo grant flow (GUI also available) |
| `/sweep_vault`                        | Sweep excess treasury SOL to cold wallet    |
| `/call_alpha <mint> [msg]`            | Post formatted alpha call to community      |
| `/referral_tree`                      | Browse affiliate tree (admin preview)       |

## Testing and diagnostics

| Command              | Description                             |
| -------------------- | --------------------------------------- |
| `/test_win`          | Fire test PnL win card to community     |
| `/test_leaderboard`  | Test in-bot leaderboard render          |
| `/force_leaderboard` | Force community leaderboard broadcast   |
| `/test_rpc`          | RPC connectivity check                  |
| `/unstick`           | Clear stuck FSM states (admin recovery) |

## Group commands (project tracking)

| Command                        | Description                       |
| ------------------------------ | --------------------------------- |
| `/set_buy_bot <CA> [referrer]` | Activate Project Buy Bot in group |
| `/hiper`                       | Show project status in group      |

## Admin menu shortcuts (main menu)

| Button                    | Callback / area               |
| ------------------------- | ----------------------------- |
| Relay                     | `admin_relay_main`            |
| Partners                  | `admin_partners_main`         |
| Calls                     | `admin_calls_gui`             |
| Grant Promo               | `admin_grant_promo_start`     |
| Infrastructure            | `admin_infra_main`            |
| Project Buy Bot           | `admin_project_buybot_main`   |
| Fee Control               | `admin_fees_panel`            |
| Push Dev Update           | `admin_dev_update`            |
| Configure Treasury        | `admin_treasury_config`       |
| RPC Cockpit               | `admin_rpc_cockpit`           |
| Fetch Live On-Chain Stats | `admin_fetch_live_stats`      |
| Revert PnL Theme          | PnL card branding reset       |
| Hard Reboot               | `restart_bot.py` process tree |
| Clear Cache               | Blockhash / infra cache flush |
| View Logs                 | Tail recent `bot.log` excerpt |

## Security

Non-admin users receive no response or a generic denial. Unauthorized admin attempts trigger `middleware/security_telemetry.py` alerts.

## Related

* [Admin dashboard](/admin/admin-dashboard.md)
* [Treasury and auto-sweep](/admin/treasury.md)
* [Maintenance mode](/for-operators/maintenance-mode.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.hipersnipe.com/admin/commands-reference.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
