Skip to content

Circuit Studio ​

Studio shows your project in the browser: the network as a graph, everything in tables, tools to trace and test, and a compare view.

Studio only reads your files. It touches a device only when you press Read from the device now, and then it only reads.

Studio's graph of cables between edge-01 and tor-01, with the layer tabs at the top and the legend beside it.Studio's graph of cables between edge-01 and tor-01, with the layer tabs at the top and the legend beside it.

Start it ​

  1. Run circuit studio, or pick Studio in the menu.
  2. Your browser opens http://127.0.0.1:4600.
  3. Save a file, and Studio updates by itself.

Only your machine can reach it. Ctrl+C stops it.

OptionWhat it does
--port <number>The port. The default is 4600.
--host <address>Where it listens. 0.0.0.0 is every address. The default is this machine only. See Host Studio.
--allow-host <names>The names people use to reach it, behind a proxy. Studio refuses any other name.
--no-openDon't open the browser.

Every page has its own address, such as /devices/edge-01, to bookmark or send.

The graph ​

The graph draws your network one layer at a time. Pick a layer at the top of the drawing, or press 1 to 6.

LayerWhat it draws
CablesOne line per cable, from each port's link. The cables of one LAG are one line.
VLANsThe VLANs each cable carries. Pick a VLAN in the side panel to light its cables.
AddressesAddress ranges that devices share.
BGPSessions between your devices, matched by address, and sessions to each AS outside.
OSPFInterfaces in one area and one prefix, where neither side is passive.
TunnelsGRE and VXLAN tunnels, matched by their endpoints, and WireGuard peers.
  • Click a device or a line to see it in the side panel. Esc clears the selection.
  • Double-click a device to open its page.
  • Drag a device to move it. Studio remembers where you put it, per layer, after a reload too.
  • Drag the empty space to move the drawing, and scroll to zoom.
  • Tab reaches the list of devices, for the keyboard.
  • More than 3 lines between two devices are drawn as one, such as "4 cables". Click it for the list.

The graph shows what your files say, not what is plugged in. To check the cables, run circuit diff on the device: it compares what LLDP sees with each link.

Present on a big screen ​

Present, or the key P, shows the network on a wall screen, such as in a NOC. Every 6 seconds it moves on: first the whole layer, then its four busiest devices one by one, then the next layer that has lines.

It waits while you point at a device or drag one. Stop presenting or Esc stops it. A screen that reloads keeps presenting.

Look things up ​

The tabs at the top list everything in your files.

TabWhat it lists
DevicesEvery device, with its platform, model, site, ports declared, and findings. Each opens the device's page.
VLANsEvery VLAN, its gateways, and the access and trunk ports on each device.
AddressesEach address space with its segments, what is free and the next free address, and every address in use.
BGPEvery session, what it takes from its group, and what is at the far end.
CablesEvery cable, with the VLANs it carries.
ProblemsWhat circuit validate finds, and every line only one end declares. The count in the top bar is the same.

Search finds a name, an address, or any other value in any device, up to 200 matches.

Point at a field name with a dotted underline, such as remote_as, to see what it means.

A secret shows as its name, such as secret("EDGE_01_PASSWORD"), never as its value. To see the values, see Secrets in Studio.

A device's page ​

Most of its tabs follow the groups of the device's file, such as Interfaces and Routing. Three tabs are different.

TabWhat it shows
ConfigThe config Circuit writes, in the vendor's own commands.
On the device nowWhat the device runs, and what circuit apply would send.
HistoryThe commits that changed the device's file, newest first.

Read from the device now logs in to the device and reads it, like circuit diff. Nothing is sent, and Studio keeps no copy. It needs the device's password, so it works only when the secrets password comes from 1Password, CIRCUIT_SECRETS_PASSWORD, or a password Circuit remembers. Otherwise run circuit diff, which asks for it.

Review a change ​

Studio compares your files now with a branch, a tag, or a commit. Your project must be in git, which circuit new sets up.

  1. Open Compare in the top bar.
  2. Pick a branch, tag, or recent commit, or type one, such as main or HEAD~3.
  3. Studio shows the devices added and removed, and the config of each changed device, line by line. It also shows the lines of the graph added and gone, and the findings of circuit validate that are new or gone.
  4. Show in the graph draws the changes on the graph. Stop comparing goes back to the graph as it is.

Before you merge a pull request, compare its branch with main. Studio reads both sides with the Circuit you run now, so changes to Circuit itself don't show.

To compare from a commit in a device's History tab, press compare with now.

Released under the Business Source License 1.1.