| 1 | --- |
| 2 | title: "How to Understand Agents: Hub vs Local Configuration" |
| 3 | description: "Learn how to choose between cloud-managed Hub agents and local configuration for AI development assistance in Continue, including setup, management, and best practices for each approach" |
| 4 | --- |
| 5 | |
| 6 | Every developer has unique needs when it comes to AI assistance. Some prefer the convenience of cloud-managed configurations, while others need the control and privacy of local setups. Continue offers both paths, and this guide will help you choose the right one for your workflow. |
| 7 | |
| 8 | ## What Are the Two Paths to AI Assistance? |
| 9 | |
| 10 | Continue provides two distinct ways to configure your AI agent: |
| 11 | |
| 12 | Think of Continue's configuration options like choosing between a managed service and self-hosting. Both get you to the same destination—powerful AI assistance in your IDE—but the journey and control level differ significantly. |
| 13 | |
| 14 | ### How to Access Your Agent Configuration |
| 15 | |
| 16 | Before we dive into the specifics, let's understand how to access your configuration: |
| 17 | |
| 18 | 1. Open the Continue Chat sidebar by pressing <kbd>cmd/ctrl</kbd> + <kbd>L</kbd> (VS Code) or <kbd>cmd/ctrl</kbd> + <kbd>J</kbd> (JetBrains) |
| 19 | 2. Click the Agent selector above the main chat input |
| 20 | 3. Hover over an agent and click: |
| 21 | - `new window` icon for Hub agents |
| 22 | - `gear` icon for Local agents |
| 23 | |
| 24 |  |
| 25 | |
| 26 | ## What Are Hub Agents: The Managed Experience |
| 27 | |
| 28 | Hub Agents represent the "it just works" philosophy. When you [sign in to Continue Hub](https://auth.continue.dev/), you gain access to a curated ecosystem of pre-configured agents that sync seamlessly across all your development environments. |
| 29 | |
| 30 | ### Why Should You Choose Hub Agents? |
| 31 | |
| 32 | **The Power of Simplicity** |
| 33 | |
| 34 | - **Instant Setup**: Browse the [agent marketplace](https://hub.continue.dev) and add any agent to your account with a single click |
| 35 | - **Web-Based Management**: Configure models, add secrets, and customize settings through an intuitive web interface—no JSON editing required |
| 36 | - **Automatic Synchronization**: Make a change on the hub, and it reflects immediately across all your IDE instances |
| 37 | - **Team Collaboration**: Share custom agents with your team, ensuring everyone uses the same optimized configurations |
| 38 | |
| 39 |  |
| 40 | |
| 41 | ### How to Get Started with Hub Agents |
| 42 | |
| 43 | The journey from zero to AI-powered coding takes just four steps: |
| 44 | |
| 45 | 1. **Select Your Agent**: Click the agent selector in your IDE's Continue panel |
| 46 | 2. **Explore or Create**: Browse community agents or craft your own specialized helper |
| 47 | 3. **Secure Your Keys**: Add API keys as [User Secrets](https://hub.continue.dev/settings/secrets) in the hub—they're encrypted and never exposed |
| 48 | 4. **Sync and Code**: Click "Reload config" to pull your latest settings |
| 49 | |
| 50 | Pro tip: Hub Agents are perfect for teams. Create a custom agent with your team's coding standards, preferred models, and context sources, then share it with a simple link. |
| 51 | |
| 52 | ### How to Manage Hub Agents |
| 53 | |
| 54 | All Hub Agent management happens through [the Hub](https://hub.continue.dev). For detailed customization, see our guide on [Editing an Agent](/hub/agents/edit-an-agent). |
| 55 | |
| 56 | ## What Are Local Agents: The Power User's Choice |
| 57 | |
| 58 | Local Agents put you in the driver's seat. Using a `config.yaml` file, you have complete control over every aspect of your AI agent's behavior, with all configuration stored directly on your machine. |
| 59 | |
| 60 | ### Why Should You Choose Local Agents? |
| 61 | |
| 62 | **Complete Control and Privacy** |
| 63 | |
| 64 | - **Your Data, Your Rules**: All configuration stays on your machine—perfect for air-gapped environments or strict data policies |
| 65 | - **Version Control Integration**: Check your `config.yaml` into git alongside your code, ensuring reproducible environments |
| 66 | - **Offline Capability**: Once configured, no internet connection needed (assuming you're using local models) |
| 67 | - **Unlimited Customization**: Access every configuration option, experimental feature, and advanced setting |
| 68 | |
| 69 | ### How to Set Up Local Agents |
| 70 | |
| 71 | Local configuration lives in a single YAML file in your home directory: |
| 72 | |
| 73 | **File Locations:** |
| 74 | |
| 75 | - macOS/Linux: `~/.continue/config.yaml` |
| 76 | - Windows: `%USERPROFILE%\.continue\config.yaml` |
| 77 | |
| 78 | **Quick Access Method:** |
| 79 | |
| 80 | 1. Open the agents dropdown in your IDE |
| 81 | 2. Click the gear icon next to "Local Agent" |
| 82 | 3. The `config.yaml` file opens in your editor |
| 83 | |
| 84 |  |
| 85 | |
| 86 | ### The Local Agent Experience |
| 87 | |
| 88 | When you edit your `config.yaml`, Continue provides intelligent autocomplete for all available options. Save the file, and Continue automatically reloads your configuration—no restart required. |
| 89 | |
| 90 | The first time you use Continue, it generates a `config.yaml` with sensible defaults. From there, you can customize everything from model selection to context providers, slash commands, and more. |
| 91 | |
| 92 | For the complete configuration reference, see our [config.yaml documentation](/reference). |
| 93 | |
| 94 | ## How to Make the Right Choice |
| 95 | |
| 96 | The decision between Hub and Local agents often comes down to your specific needs and constraints. Here's a framework to help you decide: |
| 97 | |
| 98 | ### Choose Hub Agents When You: |
| 99 | |
| 100 | **Value Convenience Over Control** |
| 101 | |
| 102 | - Want to start coding with AI assistance in under 60 seconds |
| 103 | - Prefer visual interfaces over editing configuration files |
| 104 | - Need to switch between multiple machines frequently |
| 105 | - Work in a team that needs standardized AI assistance |
| 106 | |
| 107 | **Need Advanced Collaboration** |
| 108 | |
| 109 | - Want to share custom agents with teammates |
| 110 | - Need centralized API key management |
| 111 | - Require quick updates across your entire organization |
| 112 | |
| 113 | **Are Getting Started** |
| 114 | |
| 115 | - New to AI-powered development |
| 116 | - Want to experiment with different models and configurations |
| 117 | - Prefer guided setup experiences |
| 118 | |
| 119 | ### Choose Local Agents When You: |
| 120 | |
| 121 | **Require Maximum Control** |
| 122 | |
| 123 | - Need to version control your exact configuration |
| 124 | - Want to customize every aspect of the AI behavior |
| 125 | - Require reproducible development environments |
| 126 | |
| 127 | **Have Privacy Requirements** |
| 128 | |
| 129 | - Work with sensitive code that requires air-gapped environments |
| 130 | - Need to ensure all configuration data stays local |
| 131 | - Have strict compliance requirements about data storage |
| 132 | |
| 133 | **Are a Power User** |
| 134 | |
| 135 | - Comfortable editing YAML/JSON files |
| 136 | - Want access to experimental features |
| 137 | - Need to integrate with local tools and scripts |
| 138 | |
| 139 | ## How to Use the Hybrid Approach |
| 140 | |
| 141 | Here's a secret: you don't have to choose just one. Many developers use both approaches: |
| 142 | |
| 143 | - **Hub Agents** for general development and experimentation |
| 144 | - **Local Agents** for production work or client projects with specific requirements |
| 145 | |
| 146 | You can switch between them seamlessly using the agent selector in your IDE. |
| 147 | |
| 148 | ## Common Patterns and Best Practices |
| 149 | |
| 150 | ### For Hub Agent Users |
| 151 | |
| 152 | 1. **Start with Community Agents**: Before creating your own, explore what others have built |
| 153 | 2. **Use Secrets Properly**: Never hardcode API keys—always use the User Secrets feature |
| 154 | 3. **Create Specialized Agents**: Make different agents for different contexts (frontend, backend, DevOps) |
| 155 | 4. **Share Liberally**: If you create something useful, share it with the community |
| 156 | |
| 157 | ### For Local Agent Users |
| 158 | |
| 159 | 1. **Version Control Your Config**: Treat your `config.yaml` like code—commit it, review changes, and maintain history |
| 160 | 2. **Use Environment Variables**: For sensitive data, reference environment variables instead of hardcoding values |
| 161 | 3. **Document Your Setup**: Add comments to your config explaining non-obvious choices |
| 162 | 4. **Keep a Backup**: Before major changes, save a working copy of your configuration |
| 163 | |
| 164 | ## Troubleshooting and Tips |
| 165 | |
| 166 | ### Hub Agent Issues |
| 167 | |
| 168 | **Changes Not Reflecting?** |
| 169 | |
| 170 | - Click "Reload config" in your IDE |
| 171 | - Check your internet connection |
| 172 | - Ensure you're signed in to the correct account |
| 173 | |
| 174 | **Agent Not Available?** |
| 175 | |
| 176 | - Verify it's added to your account on the hub |
| 177 | - Check if it requires specific API keys |
| 178 | |
| 179 | ### Local Agent Issues |
| 180 | |
| 181 | **Config Not Loading?** |
| 182 | |
| 183 | - Verify file location matches your OS |
| 184 | - Check YAML syntax (Continue will show errors) |
| 185 | - Ensure file permissions allow reading |
| 186 | |
| 187 | **Autocomplete Not Working?** |
| 188 | |
| 189 | - Update to the latest Continue version |
| 190 | - Check that you're editing the correct file |
| 191 | |
| 192 | ## Next Steps |
| 193 | |
| 194 | Now that you understand both configuration approaches, you're ready to dive deeper: |
| 195 | |
| 196 | - **For Hub Users**: [Create Your First Agent](/hub/agents/create-an-agent) |
| 197 | - **For Local Users**: [Explore the Config Reference](/reference) |
| 198 | - **For Everyone**: [Discover Available Models](/customize/model-providers/overview) |
| 199 | |
| 200 | Remember, the best configuration is the one that helps you code more effectively. Start simple, experiment freely, and gradually refine your setup as you discover what works best for your workflow. |
| 201 | |
| 202 | Happy coding with Continue! 🚀 |