Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| X402_MODE | No | Operating mode: test (mock) or production (real) | test |
| AG402_PRICE | No | USDC price per request | 0.02 |
| X402_NETWORK | No | Solana network: mock, devnet, or mainnet | devnet |
| AG402_ADDRESS | No | Provider Solana wallet address that receives USDC payments | |
| RUGCHECK_HOST | No | Bind address for the service | 0.0.0.0 |
| RUGCHECK_PORT | No | Bind port for the service | 8000 |
| CACHE_MAX_SIZE | No | Maximum number of cached entries (LRU) | 5000 |
| GOPLUS_APP_KEY | No | Optional GoPlus API key for higher rate limits | |
| SOLANA_RPC_URL | No | Read-only Solana RPC URL for payment verification | https://api.devnet.solana.com |
| PAID_RATE_LIMIT | No | Paid requests per IP per minute | 120 |
| UVICORN_WORKERS | No | Number of worker processes | 1 |
| FREE_DAILY_QUOTA | No | Free requests per IP per day | 20 |
| CACHE_TTL_SECONDS | No | Cache time-to-live in seconds | 3 |
| GOPLUS_APP_SECRET | No | Optional GoPlus API secret | |
| AG402_GATEWAY_PORT | No | Port for the ag402 gateway | 8001 |
| RUGCHECK_LOG_LEVEL | No | Logging level: debug / info / warning / error | info |
| SOLANA_PRIVATE_KEY | No | Solana private key in base58 format (required for consumer setups or specific gateway configs) | |
| RUGCHECK_PRODUCTION | No | Set to true to disable docs and harden health responses | false |
| AG402_UNLOCK_PASSWORD | No | Password used to unlock the local encrypted wallet | |
| GOPLUS_TIMEOUT_SECONDS | No | Timeout for GoPlus API calls | 2.5 |
| AG402_PREPAID_SIGNING_KEY | No | HMAC signing key for prepaid fast-path (min 32 chars) | |
| DEXSCREENER_TIMEOUT_SECONDS | No | Timeout for DexScreener API calls | 1.5 |
| RUGCHECK_API_TIMEOUT_SECONDS | No | Timeout for RugCheck API calls | 3.5 |
Capabilities
Server capabilities have not been inspected yet.
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
No tools | |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |