Loading video...

Video Failed to Load

Go Home

I added native sandbox support to @OpenCode. By adding one line to your config, you get: - @Daytonaio cloud sandboxes - Automatic git tracking of every change - Live web deployments for vibe coded apps

32,546 views • 9 months ago •via X (Twitter)

28 Comments

James Murdza's profile picture
James Murdza9 months ago

Instructions to add it to your project:

AriesTheCoder's profile picture
AriesTheCoder9 months ago

@opencode @daytonaio You should try building a real app with this lol

Esteban's profile picture
Esteban9 months ago

@opencode @daytonaio Maybe you will be interested in checking this out: ;)

pyk's profile picture
pyk9 months ago

@opencode @daytonaio hell yeah thanks for building this bro

James Murdza's profile picture
James Murdza9 months ago

@opencode @daytonaio Sure, it was super fun to make.

gianni's profile picture
gianni9 months ago

@opencode @daytonaio this is awesome

James Murdza's profile picture
James Murdza9 months ago

@opencode @daytonaio Thank you!

chrissi's profile picture
chrissi9 months ago

@opencode @daytonaio will the sandbox have my local .env.local secrets?

James Murdza's profile picture
James Murdza9 months ago

@opencode @daytonaio These files won't be uploaded as long as they are ignored by git. If you want the agent to have them, you could manually pass them to the agent.

chrissi's profile picture
chrissi9 months ago

@opencode @daytonaio is the focus here more on solely vibe coded apps? because for my use cases, i would need to have access to the db available for example or other api keys or can i add them to my org, so any sandbox will have them?

James Murdza's profile picture
James Murdza9 months ago

@opencode @daytonaio I also want to use it for serious apps! Based on your feedback, I'm thinking of passing variables in .env.opencode to the sandbox. What do you think?

chrissi's profile picture
chrissi9 months ago

@opencode @daytonaio for me, my dev secrets aren't so sensible since i don't use production envs (mostly) it would make sense to be able to configure it and maybe use a separate env file as you pointed out! would be very cool to have

James Murdza's profile picture
James Murdza9 months ago

@opencode @daytonaio OK, I will implement this. Thank you for giving me the idea!

John's profile picture
John9 months ago

@opencode @daytonaio @daytonaio is the truth too. Great support.

United Records's profile picture
United Records9 months ago

@opencode @daytonaio Interesting

Joshua Poddoku's profile picture
Joshua Poddoku9 months ago

@opencode @daytonaio Sandboxing with auto git tracking is neat, yet the 15 minute idle pause might pressure quick commits and break flow for slower explorations

James Murdza's profile picture
James Murdza9 months ago

@opencode @daytonaio It won't change your workflow at all! The paused sandbox will resume automatically as soon as you try to use it again.

pooria's profile picture
pooria9 months ago

@opencode @daytonaio @jamesmurdza Q: Does this we can build a lovable-like UI that uses opencode and Daytona for live previews?

James Murdza's profile picture
James Murdza9 months ago

@opencode @daytonaio You can! Check out these guides for example code:

Jagjeevan's profile picture
Jagjeevan9 months ago

@opencode @daytonaio bro is cracked as f*uk

Logic Trail Blaze's profile picture
Logic Trail Blaze9 months ago

@opencode @daytonaio Do you have to delete the opencode session for the @daytonaio usage charges to stop?

James Murdza's profile picture
James Murdza9 months ago

@opencode @daytonaio If a session has no activity for 15 minutes it will automatically pause the sandbox and you will only be charged for storage. You can also delete the OpenCode session to permanently delete the sandbox.

Mike Mickelson's profile picture
Mike Mickelson9 months ago

@opencode @daytonaio one line to your config. thats the magic phrase. every dev tool that wins makes the hard thing one line. sandbox + git tracking + live deploy is a stack nobody had 6 months ago.

Donny Li's profile picture
Donny Li9 months ago

@opencode @daytonaio Sandboxing + auto git tracking is exactly what makes agentic coding feel safe enough to use daily. Love the Daytonaio integration - do you also snapshot deps/env (lockfiles, toolchain) so reruns are reproducible?

James Murdza's profile picture
James Murdza9 months ago

@opencode @daytonaio Each OpenCode session is a reproducible development environment created from your Git repository.

Eamon's profile picture
Eamon9 months ago

@opencode @daytonaio Just curious, why would one use a paid service like Daytonaio and not something like a local docker instance? What made you choose Daytonaio?

Ameya's profile picture
Ameya9 months ago

@opencode @daytonaio light mode dawg pls

Pranav Bobde's profile picture
Pranav Bobde9 months ago

@opencode @daytonaio @davis7

Related Videos