Skip to content
Pine Computer Request access
Menu

Blog

Cookbook 01: Hello, Computer

Create a Pine Computer, open a browser session and load a page with three Ruby SDK calls. Watch the recorded run and find the setup docs.

By The Pine Computer team · Updated

Cookbook 01: Hello, Computer

The first recipe is the shortest. Your program makes a computer, opens a session with a browser on it, and loads a page. The window on the right of the film is the computer’s own screen, live.

The Ruby below is an excerpt from the October recording, not a current integration recipe. SDK setup and application helpers are omitted. Use the current agent API and file handling docs when building an integration.

Ruby
computer = pine.create_computer
puts "computer ready"

session = computer.create_session(browser: true)
puts "browser open"

tab = session.create_tab(url: "https://pinecomputer.io")
session.patch_tab(tab.target_id, active: true)
puts "opened https://pinecomputer.io"

gets  # press Enter to stop
computer.stop

pine is your client. Setting it up is the first step in the developer docs.

More from the blog

Build more.
Hand AI the work.