Put Cockpit in your own admin

What you'll do

  1. Add your admin's domain in Cockpit › Install widget.
  2. Paste the script tag where the panel should show.
  3. Add a small route on your server that asks withConflux for a token.
  4. Open your admin page and check the status in Install widget.

Walkthrough

Most teams want the panel where they already work: inside their own admin. Cockpit is one script tag that draws the same Health panel inside your page, in light, dark or auto theme, in English, Italian or Greek.

Start with the allowed domains. The panel only loads on the hosts you list, and each host counts on its own, so add admin.example.com and example.com separately if you use both.

Then paste the snippet. It carries your public widget key, which is safe to show: on its own it opens nothing. To open the panel, your page also needs a session token that lives 15 minutes.

The token comes from your server, behind your own login. A small route calls the withConflux token endpoint with your secret key and returns the token to the page, so the secret never reaches the browser. When the token runs out the panel asks for a new one by itself.

Install widget shows when the panel last loaded and from where, and how many loads were blocked because they came from a domain that isn't on the list.

Keep exploringCockpit demos →Cockpit →One API →
We use a single analytics cookie to understand traffic to this site. Nothing loads until you choose. See our Privacy Policy.