Build
Code with AI
Code with AI writes, audits and deploys smart contracts. Chat drafts and reviews contracts with you; Agent builds and ships one on its own, stopping for your signature.
Chat
Describe a contract and the assistant writes it, or paste one and ask for a security review with findings graded by severity. Every code block has an Open in Editor button that drops the source into the Contract Editor. Answers are tailored to the network you have selected.
Agent
Switch to the Agent tab and describe a contract. It runs the whole loop, reporting each step:
- 1GenerateWrites a complete contract from your request.
- 2CompileCompiles it in the browser and reads the compiler output.
- 3FixIf compilation fails, it rewrites the source and compiles again, up to five times.
- 4DeployWhen the constructor needs arguments, a form appears pre-filled with sensible values for you to check. Your wallet shows the real cost before you sign.
- 5RecordRecords the deployment and links it in the explorer.
Important
Agent deploys are real transactions on the selected network. Check the network in the sidebar before you start, and read what your wallet asks you to sign.
Providers and keys
Both modes, and the Coding Agent, use the AI provider you choose. Open the AI settings panel on the Code with AI page, pick a provider and model, and add a key.
| Provider | Models |
|---|---|
| OpenRouter | One key reaches every model below. The default. |
| Anthropic | Claude Opus 5, Sonnet 5, Fable 5, Opus 4.8, Haiku 4.5 |
| OpenAI | GPT-5.6 Sol, Terra and Luna, GPT-5.5, GPT-5.4 Mini |
| DeepSeek | V4 Pro, V4 Flash |
| Others via OpenRouter | Google Gemini 3.7 Flash, xAI Grok 4.6, Qwen3.8 Max |
How your key is kept
- A key you add is stored in this browser only.
- Where the deployment offers a server-side key, requests can go through it instead and no key reaches the browser.
- The model list shows an indicative price per million tokens, so the cost is visible before you choose.