We’ve heard from developers and agencies who want more ways to manage their DreamHost hosting through code. They want to automate routine tasks, connect their own tools and avoid opening the control panel every time they need to check something.

And the way developers work is changing. AI coding tools are becoming part of more everyday workflows, and we expect the need for greater flexibility to keep growing.

Between what we’ve heard from our customers and how quickly developer workflows are changing, we decided to rebuild the DreamHost API from scratch. 

Now it’s here with entirely new code and more ways to manage your hosting through scripts, custom applications and AI tools.

A few ways to use the API 

Let’s say you’re managing several client websites and one starts acting up. You need to check the error logs, look at recent traffic, and figure out what’s going on. (Preferably before your client notices.)

With the API, you can retrieve that information directly through code and even build it into a script you run regularly instead of checking each site individually.

Here’s a look at some of the other things you can do:

  • Manage websites and DNS: Check website details, including PHP versions, and add, update or remove supported DNS records.
  • Investigate issues: Retrieve access and error logs, review traffic data and run performance scans.
  • Work with servers: Check server metrics, manage supported server functions and access server user information.

You can create API keys with specific permissions, controlling what each connected tool can view or change.

The rebuilt DreamHost API is included with every DreamHost hosting plan at no additional cost and is currently available to account owners. What you can do with the API may vary depending on your hosting plan.

Using the API with AI coding tools

The rebuilt API works with AI coding tools like Claude Code, Cursor, and Codex, giving developers another way to manage their hosting. 

For example, you could ask an AI coding assistant which of your websites are running an outdated PHP version. With access to the DreamHost API, it can retrieve the relevant information and help you identify which sites need attention.

Or maybe you prefer writing your own scripts. Go for it!

We want to support the way you work, wherever that happens to be. APIs like ours open up your DreamHost account to your code and your AI agents, enabling you to explore new ways of using your hosting that you might not have considered before. If you’ve built your own systems or you’re experimenting with AI tools, we believe you should have the freedom to put those tools to work with your hosting and decide what they can access.

More on the way, including AI agent support 

In the weeks to come, we’re planning to expand the API’s capabilities. The work we’ve done to rebuild it also lays the groundwork for our upcoming support for Model Context Protocol (MCP). 

The MCP will make it easier for AI agents to connect with DreamHost services. While it’s not available yet, having the new API in place puts us in a better position to bring that capability to our customers sooner. 

Put the API to work

If you’re a DreamHost account owner, you can create an API key in your control panel now and explore our documentation for instructions and examples. 

Not a DreamHost customer yet? You can explore our hosting plans and see what works for you.