Hosted and self-hosted > Web3-GPT
Deploy smart contracts with ChatGPT.
Web3GPT
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 - skill guide at
https://w3gpt.ai/skill.md - API reference at
https://w3gpt.ai/api-docs
What Changed
- 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
- Polygon mainnet is not exposed through wallet connectors in the UI
Core Flows
- 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
Supported Agent Deployment Chains
- Polygon Mainnet
- Polygon Amoy
- Base Sepolia
- Arbitrum Sepolia
- Optimism Sepolia
- Mantle Sepolia
- Metis Sepolia
- Celo Alfajores
- Ethereum Sepolia
Getting Started
- Clone the repository.
- Copy
.env.exampleand fill in the required variables. - Install dependencies.
- Run the app.
bun install
bun dev
Important Environment Variables
OPENAI_API_KEYDEPLOYER_PRIVATE_KEYAUTH_GITHUB_IDAUTH_GITHUB_SECRETAUTH_SECRETCRON_SECRETKV_REST_API_URLKV_REST_API_TOKENNEXT_PUBLIC_ALCHEMY_API_KEYNEXT_PUBLIC_TENDERLY_API_KEYNEXT_PUBLIC_WALLETCONNECT_PROJECT_IDETHERSCAN_API_KEYBLOCKSCOUT_API_KEYPINATA_JWT
Skill API
Start a chat:
curl https://w3gpt.ai/api/skill
Continue 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.
Development Commands
bun devbun run buildbun run startbun run typecheckbun run lintbun run format