Order food from Grubhub directly through VS Code's Copilot Chat interface! This extension allows you to browse restaurants, add items to cart, and complete orders without leaving your development environment.
- List your favorite restaurants
- Browse restaurant menus
- Add items to cart
- Update delivery information
- View bill details
- Complete checkout
- Manage multiple carts
- Install the extension from the VS Code marketplace
- Configure the required settings:
grubhub.bearerToken
: Your Grubhub API Bearer Token- To get this token:
- Log into Grubhub in your browser
- Open Developer Tools (F12)
- Go to Network tab
- Look for requests to
https://api-gtm.grubhub.com/
- Find the "Authorization" header value (starts with "Bearer")
- Note: This token expires every few hours and will need to be updated
- To get this token:
grubhub.address
: Your delivery address- Format: Simple address string (e.g. "550 jenson ave, San Jose, CA")
- We use OpenStreetMap for geocoding - verify your address works at https://nominatim.openstreetmap.org/ui/
- The extension will automatically convert this to coordinates for searching
- You must have restaurants in your Grubhub favorites list to use the restaurant listing feature
- Add restaurants to your favorites on the Grubhub website
- After updating any settings, you may need to restart VS Code for changes to take effect
- If you encounter authentication errors, try getting a new bearer token
- Open VS Code's Copilot Chat
- Select the Grubhub participant
- Start ordering with natural language commands like:
- "Show me my favorite restaurants"
- "What's on the menu at [restaurant]?"
- "Add [item] to my cart"
- "Show my current bill"
- "Complete my order"
- Lol this is so stupid, email me [email protected] if you really want this thing working.
- Adding to cart doesn't always succeed for all restraunts (likely due to the missing params in the body of the
/carts/{{cart_id}}/lines
endpoint) - Auth sucks because the bearer token expires every few hours
Want to contribute, be my guest.
MIT