01 logo

DoorDash Made A Command-Line Tool So Your AI Agent Can Order Your Lunch

There's an old programmer joke

By Mark Lim Published 4 months ago • 5 min read

There's an old programmer joke, "sudo make me a sandwich," where the whole punchline is that computers taking food orders sounds absurd. In the original XKCD comic, a programmer asks, "Make me a sandwich," gets told, "make it yourself," then types "sudo make me a sandwich" (sudo being the command that grants admin-level permission to run something), and suddenly the other person just complies. It's a joke about how ridiculous it would be if you could just command your way into getting lunch made for you.

DoorDash just made that joke real.

The company quietly opened a limited beta for something called dd-cli, a command-line tool that lets you order DoorDash straight from an AI agent instead of the app. Search stores, find deals, and check out all from the terminal, no tapping through a phone screen required. DoorDash co-founder and CTO Andy Fang announced it himself on X, describing it simply: "dd-cli lets you order DoorDash directly from your agent: search stores, find the best deals, check out, and more." It's currently limited to a waitlist for U.S. and Canadian macOS developers, so this isn't something the general public can just download and start using yet.

Why this is funny before it's anything else

Command lines are for programmers doing programmer things, running scripts, managing servers, deploying code, and moving files around. They are not, historically, for ordering a sandwich. So the immediate reaction to "you can now DoorDash from the terminal" is basically pure comedy. It sounds like something you'd build as a hackathon joke at 3 am, not a real product a major food delivery company would formally announce.

And DoorDash clearly knows that. The promotional video attached to the announcement leans hard into the bit it shows the tool reading Slack messages, recalling memories, parsing JSON, digging through menu structures, running actual Python scripts, recovering from errors, and calculating totals... all just to order three salads. While it's working, the interface literally displays the word "Flibbertigibbeting." It's a deliberately absurd amount of technical machinery pointed at something as simple as lunch, and the whole video seems to be in on the joke rather than accidentally stumbling into it.

That's honestly the funniest part of this whole launch DoorDash didn't just build the tool and hope people found it amusing. They built the demo video to specifically exaggerate and poke fun at the over-engineering of the whole concept, which suggests someone on their team genuinely understood the "sudo make me a sandwich" reference and decided to lean all the way into it rather than play it straight.

But it's not actually a joke.

Here's the thing though, underneath the bit, this is a genuine glimpse at what "agentic commerce" is starting to look like in practice, not just in theory. DoorDash is essentially opening up its entire ordering platform to AI agents and developers, letting them plug DoorDash's functionality directly into whatever they're building, rather than requiring every order to originate from DoorDash's own app or website.

That means instead of someone opening the DoorDash app themselves, scrolling through restaurants, and manually placing an order, a developer could build a tool that automatically orders lunch when certain conditions are met say, every day at noon if your calendar shows you're in back-to-back meetings, or automatically re-ordering your usual when your fridge tracker (if such a thing existed) flags that you're low on groceries. Developers could also combine DoorDash's ordering capability with other tools entirely, stacking it together with a calendar app, a budgeting tool, a Slack bot for coordinating group lunch orders, or basically anything else with an API. The CLI effectively turns DoorDash from "an app you open and interact with directly" into "a building block other software can call on command."

This isn't DoorDash's first move in this direction either, and it's worth understanding it as part of a broader pattern rather than an isolated stunt. They've already experimented with ordering through iMessage, letting people place orders without ever leaving a text conversation. They launched their own AI chatbot called "Ask DoorDash" back in June, which lets people order using natural-language prompts and even photos instead of manually browsing menus. And they've made their service directly available through both OpenAI's ChatGPT and Anthropic's Claude, meaning you can already ask a chatbot to order you food without opening DoorDash's app at all. The command-line tool is just the latest, and honestly the strangest-looking, entry in that same ongoing push toward letting AI systems handle the actual mechanics of ordering instead of a human manually tapping through screens.

What developers actually get to do with it

The sign-up form for beta access includes a field literally asking applicants what they would build with it if given access which is a pretty strong signal that DoorDash doesn't have a single fixed use case in mind here. They seem genuinely curious to see what developers come up with once they get their hands on it, rather than releasing this tool with one specific, pre-planned application already baked in.

Given how these open developer betas usually go, expect a real split in what gets built. On one end, genuinely useful stuff: auto-ordering tools tied to calendars, deal-finding bots that scan for the best lunch discounts nearby, group-order coordination tools for offices, or integrations that fold DoorDash ordering into existing productivity workflows. On the other end, completely ridiculous stuff, built purely because someone technically could voice-activated snack bots, elaborate Rube Goldberg-style automation chains that require six other tools just to order a burrito, novelty projects designed purely to make people laugh on social media.

That split is kind of the whole spirit of the "sudo make me a sandwich" joke this entire launch is riffing on in the first place. The joke has always been about the gap between "technically possible" and "actually necessary" Just because you can automate something with layers of scripts and permissions doesn't mean it needs ten unnecessary steps to accomplish what used to take thirty seconds on an app. DoorDash seems fully aware of that irony, based on how deliberately silly their own demo video is, and decided to lean into it publicly rather than pretend their command-line food-ordering tool is some kind of serious, self-important productivity breakthrough.

Whether dd-cli ends up producing something genuinely useful once it's out of beta, or whether it mostly becomes a niche novelty for developers who enjoy building absurd things for the sake of building them, is honestly part of the fun of watching where this goes next.

tech news

About the Creator

Mark Lim

Hi I am mark an automotive student and a car, tech and food enthusiast ! Im gonna try and post daily & hope you enjoy what I write and do share my page with people you know. I would gladly appreciate it! Cheers

Enjoyed the story? Support the Creator.

Subscribe for free to receive all their stories in your feed.

Subscribe For Free

Reader insights

Comments

There are no comments for this story

Be the first to respond and start the conversation.

Sign in to comment
    Written by Mark Lim