Switch buddy: print a fidget figure with a keyboard switch
What is a switch buddy?
A switch buddy is a small pixel-style figure with a mechanical keyboard switch pressed into its head. The keycap sits on top like a hat, and pressing it clicks exactly like on a keyboard. It is a desk fidget toy: something for your fingers during a call, and a character that watches your monitor.
By default the figure is an edge sitter. It sits on the edge of a desk, a shelf or a monitor with its legs dangling in front, and its center of mass lies behind the edge so it stays put. It prints as one rigid part, upside down on the flat top of its head, without supports. The only thing you add is the switch and a keycap. Look through the example gallery for cats, bunnies, ghosts and standing figures, or start with the desk edge sitter.
How the generator works
Everything runs in your browser: nothing is uploaded and there is no account. The design is stored in the page link, so “Share” gives you a URL to continue later.
- Choose the switch: MX, Choc, Alps or your own cutout, and how tight it should fit.
- Pose and figure: edge sitter, standing, sitting or ghost, then head, body, arms and back.
- Face and colors: eyes, mouth, cheeks and decoration, engraved or in colors of their own.
- Download: STL or 3MF in print orientation.
The preview shows the figure head up; the exported file is already upside down in print orientation.
What you need
- A switch and a keycap. A plate-mount switch with clips is pressed into the head after printing; three or five pins make no difference.
- A printer with a 0.4 mm nozzle and about 180 mm of height. The default figure measures about 36 × 36 × 52 mm without switch and keycap.
- Optional: an M8 nut or a coin as a counterweight, 6 × 3 mm disc magnets, a key ring and a drop of glue.
The four switch presets set the cutout, the plate thickness (the ledge the clips catch on) and the room below it:
| Preset | Compatible with | Cutout (mm) | Plate (mm) | Room below (mm) |
|---|---|---|---|---|
| MX | MX-style switches (Cherry MX, Gateron, Kailh BOX, …) | 14 × 14 | 1.5 | 7.5 |
| Choc | Kailh Choc v1 low-profile switches | 13.8 × 13.8 | 1.2 | 6 |
| Alps | Alps SKCM/SKCL and Matias | 15.5 × 12.8 | 1.5 | 9.5 |
| Custom | anything | 10–20 × 10–20 | 0.8–3 | 2–14 |
The Choc mini and the Alps buddy with glasses show the other presets. If you want a whole keyboard layout instead of a figure, the keyboard switch plate generator is the right tool.
The switch socket and the fit
The socket is cut exactly, not sculpted: the cutout, the ledge and the cavity below it are built layer by layer with the sizes from the table. Under “Switch socket” you find these controls:
- “Fit” sets the clearance per side. “Normal” adds 0.05 mm, “Tight” takes 0.03 mm away so a switch in a keychain cannot fall out, and “Loose” adds 0.12 mm for printers that print holes too small. “Custom” opens “Clearance per side” (−0.15 to 0.3 mm).
- “Puller slots” (on by default) cut two narrow 1.2 mm slots beside the clips on every side, so a switch puller or a small screwdriver reaches the clips and the switch comes out again.
- “Fit test” adds a small coupon with three cutouts (the fit minus 0.05 mm, the fit, and the fit plus 0.05 mm) with the values engraved next to each. “Add” puts it next to the figure, “Only the test” exports just the coupon.
- With “Switch” set to “Custom” you also set the cutout width and depth, the plate thickness and the room below the plate.
The opening sits on the bed side when printing, so a small entry chamfer takes up the “elephant foot”. Because every printer prints holes differently, print the fit-test coupon first: it takes about 11 minutes and 3.2 g.
If the socket needs more room, the head grows by itself and the editor tells you.
Poses: edge sitter, hook and counterweight
The edge sitter
With “Pose” set to “Edge sitter”, the seat and the backs of the legs form an exact 90° inner corner that fits over a table edge. “Leg length” (6–30 mm, default 14 mm) decides how far the legs hang down in front. “Corner relief” (0–3 mm, default 0.6 mm) adds a chamfer in the inner corner, so the figure sits flat on rounded or edge-banded boards.
Below the controls the editor shows where the center of mass is: by default 6.4 mm behind the edge, and 6.1 mm while you press the key with about 1 N. The value is calculated for a solid body with switch and keycap. If it drops below 3 mm, a warning says the figure may tip over.
The hook for thin shelves
“Hook under the edge” gives the toes small wedges that reach under the board, so the figure cannot slide off a shelf or a monitor. “Shelf thickness” (2–25 mm, default 18 mm) sets the board; the gap is 0.25 mm larger. The shelf hook holds an 18 mm board and hugs a heart.
Nut or coin as a counterweight
“Weight pocket” cuts a pocket into the seat. It takes an M8 nut or a coin up to 23.5 mm, for example a 1-euro coin (23.25 mm). A coin gets a deeper seat. Press the weight in after printing and add a drop of glue. See the nut counterweight. The “Backpack” under “Back” adds weight behind the edge as well.
Standing, sitting, ghost
“Stand” puts the figure on two wide feet, “Sit” lets it sit on the desk with short legs, and “Ghost” has no legs at all: the body stands on the scallops of its skirt. See the ghost with fangs. “Legs” offers five stances.
Designing the figure
The whole figure is built from pixel cubes. “Pixel size” (1.6–2.4 mm, default 2 mm) is the edge of one cube; the face uses half pixels, or with “Face pixels: Whole pixels” a chunkier pixel face. “Head width” (18–60 mm, default 36 mm) is rounded to whole pixels.
- “Head”: Cube, Wide, Cat ears, Bunny ears, Horns or Blob; “Blob shape” (1–999) places the lumps.
- “Arms”: Down, Cheer, Wave, Hug or None. Hugging, the figure holds a heart, star, mug, tiny keyboard, phone, mate bottle or blinken heart.
- “Clothes”: a dress whose skirt flares out in pixel steps, or dungarees with straps, buttons and a pocket.
- “Eyes”: 18 styles, among them stars, dizzy, tear, sunglasses, side glance, cyclops and sparkling, plus “Eyebrows”. “Mouth”: 14 styles from smile to toothy grin and uwu.
- “Belly”: a pixel heart or up to five characters in pixel letters, such as “40C3” on the 40C3 buddy.
Mini, toppers and 40C3 shapes
With “Size: Mini” the head is only as big as the switch socket, about 19 × 19 mm for MX, and nothing sticks out, as on the mini buddy.
A “Topper” replaces the keycap: a hat, crown, knight helmet, hairdo, unicorn, cat or bear ears, rocket nose, lantern or LED lantern, each with a cross hole for MX or a slot for Alps. It prints next to the figure without supports, upright like the pixel top hat. Only the rocket nose prints on its flat tip, so the stem boss grows out of solid material. Choc has no topper.
The “Shape” turns the buddy into a pixel rocket on three fins (one in front) with its face in the porthole, or into the MOIN lighthouse clicker with chevrons and the letters on all four sides, engraved for single color.
Single-color engraving or multi-color inlays
The figure has color slots for body, eyes, mouth, cheeks, decoration, clothes, stripes and topper. Each slot works on its own:
- Without an own color the pixels are engraved. “Face depth” (0.4–1 mm, default 0.8 mm) sets how deep. This prints in one color on any printer; dark paint in the engraving makes the face pop.
- With an own color the pixels become flush inlays: separate parts that touch the body but never overlap it, each assigned to its own extruder. The cat and the four-color masked buddy are built this way.
For multi-color, download the multi-color 3MF for PrusaSlicer or Bambu Studio / OrcaSlicer, or one STL per color. A color change at a layer height cannot color a face on a vertical wall: with one extruder, choose the engraved face.
LED lantern for clear filament
The “LED lantern (clear)” topper is made for transparent or translucent PETG or PLA. Many MX switches have an LED slot: a standard 3 mm LED goes in through the housing from below, its dome sits in the window on top of the switch. The hollow under the lantern clears it with 0.5 mm to spare, even fully pressed and with the dome up to 2 mm above the housing. This holds on both sides of the stem, so the lantern also fits turned by 180°.
Above the hollow sits a hollow glass room with 1.2 mm walls, only 1.2 mm away from the hollow all round: the LED’s light shines into it and the whole lantern glows, with no window bars in the way. The topper only provides room and a light path; how the LED gets power is up to you. The lantern also fits Alps switches, but there is no LED slot planned for them.
Extras: keyring tunnel and magnets
“Keyring tunnel” runs a 2.5 mm tunnel diagonally through a back corner of the head, with a pointed roof and nothing sticking out; without room the head gets taller, not wider. Combine it with the tight fit for the keychain ghost.
“Magnets” cuts press-fit pockets for 6 × 3 mm disc magnets into the feet or the seat, so the figure sticks to a steel shelf. Each pocket is 6.5 mm wide with eight crush ribs that reach in to 5.9 mm and a 0.8 mm entry chamfer, so the magnet holds without glue.
Printing
Print the file as it comes out of the download: head top on the bed, no supports. The flat head top gives a wide, stable first layer, so a brim is usually not needed.
Numbers from a PrusaSlicer slice for the Prusa MINI, profile 0.20 mm SPEED, Prusament PLA, without auto-supports:
| Example | Filament | Time |
|---|---|---|
| Desk edge sitter (default) | 15.9 g | 1 h 0 min |
| Shelf hook | 16.7 g | 1 h 8 min |
| Edge sitter with M8 nut | 16.0 g | 1 h 1 min |
| Cheering buddy on two feet | 15.0 g | 55 min |
| Choc mini | 9.2 g | 44 min |
| Keychain ghost, tight fit | 11.1 g | 46 min |
| Fit-test coupon | 3.2 g | 11 min |
| Lighthouse with LED lantern | 22.9 g | 1 h 34 min |
- Fit first: print the coupon, try your switch in the three holes and set the clearance before the figure.
- Check the preview: some combinations of the “Back” options can still leave small support patches.
- After printing: press the switch into the head from above until it clicks, then put on the keycap. A switch puller in the puller slots takes it out again. Do not push on the pins.
Origin and license
The switch buddy is our own design, made for this site. The pixel figure, the socket and the poses were developed here. The labels of the fit-test coupon use the Liberation Sans Bold font under the SIL Open Font License. All licenses are listed on the licenses page.
Ready to start? Open the generator or browse the examples. If you want a keychain with several real keys, try the key switch fidget keychain, and for the hat the keycap generator.
All parameters
The numeric settings of the generator with their default values and allowed ranges. Text, fonts, patterns and colors are set directly in the generator.
| Parameter | Default | Range | Meaning |
|---|---|---|---|
| Switch socket | |||
| Clearance per side | 0.05 mm | -0.15 – 0.3 mm | Added to every side of the plate cutout. Negative values make the switch sit tighter. |
| Cutout width | 14 mm | 10 – 20 mm | Plate cutout of your switch from its datasheet, without clearance. |
| Cutout depth | 14 mm | 10 – 20 mm | The other side of the plate cutout. |
| Plate thickness | 1.5 mm | 0.8 – 3 mm | Thickness of the ledge the switch clips catch on, as for a keyboard plate. |
| Room below the plate | 7.5 mm | 2 – 14 mm | Depth of the cavity under the ledge for the switch housing and its pins. |
| Figure | |||
| Pixel size | 2 mm | 1.6 – 2.4 mm | Edge length of one pixel cube. The face uses half pixels. |
| Head width | 36 mm | 18 – 60 mm | Width of the head (the rocket: body diameter), rounded to whole pixels. The head grows on its own if the socket needs more room. With "Mini" only the socket counts. |
| Blob shape | 1 | 1 – 999 | Number that places the lumps of the blob head. Each number gives another shape. |
| Chubby | 50 % | 0 – 100 % | Width of the body. |
| Pose | |||
| Leg length | 14 mm | 6 – 30 mm | How far the legs hang down in front of the edge. |
| Corner relief | 0.6 mm | 0 – 3 mm | Chamfer in the inner corner of the seat, so the figure sits flat on rounded or edge-banded edges. |
| Shelf thickness | 18 mm | 2 – 25 mm | Thickness of the board the toes reach under. The gap is 0.25 mm larger. |
| Face | |||
| Face depth | 0.8 mm | 0.4 – 1 mm | How deep the face pixels are cut in (single color) or inlaid (own colors). |
| Topper | |||
| Stem clearance | 0.05 mm | -0.1 – 0.25 mm | Clearance per side in the hole for the switch stem. Larger if the topper sits too tight. |
| Extras | |||
Frequently asked questions
Which switches and keycaps fit?
MX-style plate-mount switches (compatible with Cherry MX, Gateron, Kailh BOX and similar), Kailh Choc v1 low-profile switches and Alps SKCM/SKCL or Matias switches. Anything else goes through “Custom” with the cutout from the datasheet. The keycap is a normal keycap for your switch; it is not printed.
The switch is loose or does not go in. What now?
Print the fit-test coupon first. It has three cutouts, one at the chosen clearance and one 0.05 mm tighter and looser. Pick the one where the switch clicks in firmly, set “Fit” to “Custom” and enter that clearance under “Clearance per side”.
Do I need supports?
No. The figure prints upside down with the flat head top on the bed, in one rigid part. All 15 gallery examples slice without supports in PrusaSlicer. Rare combinations of the “Back” options can still produce small support patches, so check the slicer preview.
Will the figure stay on my desk edge?
The default edge sitter is built so that its center of mass sits 6.4 mm behind the edge, and 6.1 mm while you press the key. The editor shows both numbers and warns below 3 mm. For thin boards use the hook, for more weight an M8 nut or a coin.
Can I print it in several colors?
Yes. Give the eyes, mouth, cheeks or decoration their own color and they become flush inlays of their own. That needs a multi-material printer (MMU3, AMS or several toolheads). On a single extruder, print it in one color with engraved face pixels.
Is my design uploaded anywhere?
No. The generator runs entirely in your browser. Your design lives only in the page link and in your browser’s storage.
Origin & license
This generator is an original design.