Web3GPT is an AI-powered smart contract platform for chatting with onchain agents, deploying Solidity contracts, and running agent-driven workflows on EVM chains.
The current public integration surface is agent-first:
- browser chat UI at w3gpt.ai
- skill endpoint at
https://w3gpt.ai/api/skill - public aggregate stats at
https://w3gpt.ai/api/stats - skill guide at
https://w3gpt.ai/skill.md - API reference at
https://w3gpt.ai/api-docs
- the old Unkey-backed
/api/v1endpoints are removed - the SDK now targets the skill/chat flow instead of separate completions/deploy APIs
- Polygon mainnet deployment is available through the agent and skill endpoint
- server-side deployments are returned and recorded only after a successful contract-creation receipt
- Polygon mainnet is not exposed through wallet connectors in the UI
- chat with built-in or user-created Web3GPT agents
- deploy contracts through the agent conversation
- persist authenticated browser chats in Vercel KV
- persist anonymous skill chats by
chatId - verify deployments through the Vercel cron job
- Polygon Mainnet
- Polygon Amoy
- Base Sepolia
- Arbitrum Sepolia
- Optimism Sepolia
- Mantle Sepolia
- Metis Sepolia
- Celo Alfajores
- Ethereum Sepolia
- Clone the repository.
- Copy
.env.exampleand fill in the required variables. - Install dependencies.
- Run the app.
bun install
bun devCreate a GitHub OAuth app with the callback URL
http://localhost:3000/api/auth/callback/github, then set AUTH_GITHUB_ID, AUTH_GITHUB_SECRET
and AUTH_SECRET in .env.local. Sign-in works locally with no further configuration.
OPENAI_API_KEYDEPLOYER_PRIVATE_KEYAUTH_GITHUB_IDAUTH_GITHUB_SECRETAUTH_SECRETCRON_SECRETKV_REST_API_URLKV_REST_API_TOKENNEXT_PUBLIC_ALCHEMY_API_KEY- optional
NEXT_PUBLIC_POLYGON_AMOY_RPC_URLwallet-client override - optional
POLYGON_AMOY_RPC_URLandPOLYGON_MAINNET_RPC_URLserver deployment overrides NEXT_PUBLIC_TENDERLY_API_KEYNEXT_PUBLIC_WALLETCONNECT_PROJECT_IDETHERSCAN_API_KEYBLOCKSCOUT_API_KEYPINATA_JWT
Start a chat:
curl https://w3gpt.ai/api/skillContinue a chat:
curl -X POST "https://w3gpt.ai/api/skill?chatId=your-chat-id" \
-H "Content-Type: application/json" \
-d '{"message":"Deploy an ERC20 on Polygon mainnet"}'Include full history:
curl "https://w3gpt.ai/api/skill?chatId=your-chat-id&history=true"The chatId is the secret for continuing a thread outside the browser UI.
Successful deployment tool results include chainId, contractAddress, transactionHash,
explorerUrl, and transactionExplorerUrl. Polygon mainnet uses chain ID 137; Polygon
Amoy uses chain ID 80002.
- all recorded deployments: w3gpt.ai/contracts
- Polygon mainnet filter: w3gpt.ai/contracts?chain=polygon
- Polygon Amoy filter: w3gpt.ai/contracts?chain=amoy
- machine-readable aggregate: w3gpt.ai/api/stats
The aggregate reports custom agent records and deduplicated deployment records by chain. It includes its definitions and observation time so the values can be cited without treating testnet activity as mainnet activity.
Representative public custom agents include:
bun devbun run buildbun run startbun run typecheckbun run lintbun run format