How to decide
- You want to make something, not write code. Start with your agent, or connect your chat app. Neither needs a key.
- You want your agent to make things while it builds your project. Give it the CLI. It signs in itself and can read these docs as it works. See Set up with your coding agent.
- You are shipping a feature that generates for your users. Use the API from your server. Keys belong on servers, never in a browser or mobile app. See Authentication.
- The job needs a GPU for minutes or hours. Lease a cloud GPU. It needs a paid plan; your agent shows the price before it leases anything.