Kikakuka (企画課, きかくか, Planning Section) (formerly Kikit-UI) is mainly built on top of KiKit, Shapely, modified pcb-tools, OpenCV, pypdfium2 and PUI.
It creates a few more dimensions for KiCad:
- Workspace and project management
- Revision management
- Build variants
- Panelization
- FreeCAD integration for flexible PCB bending and multi-board assembly
- Workspace Manager
- Easily navigate between projects
- Automatically open multiple KiCad instances on macOS
- Recall windows of previously opened files (macOS and Windows only)
- Easily navigate between projects
- Differ
- Highlight changed areas
- Schematic diff viewer
- PCB diff viewer
- Git support
- Fabrication Planner
- Panelizer
- Interactive arrangement with real-time preview
- Freeform placement not limited to M×N grid configurations
- Support for multiple different PCBs in a single panel
- Automatic or manual tab creation
- Automatic V-cut/mousebites selection
- Enable hole creation in panel substrate for extruded parts
- Load KiKit multiboard files as multiple separate boards
- No coding skills required
- Build Variants
- Single PCB without panelization can be done with frameless setting
- Each PCB can have its own flag settings
- Panelizer
- Gerber handling
- Available in the panelizer
- Or direct conversion to .kicad_pcb
- Compared with KiCad output
- Better restoration of oval drill holes
- Allow attaching BOM/CPL (converted to reference-only footprints)
- CLI
- Convert saved .kkkk_pnl to kicad files in one command
- Same usage for panelizer & build variants
- FreeCAD Integration (only tested on macOS/Windows)
- Requires FreeCAD 1.0 or later
FreekiCADsupports loading multiple .kicad_pcb files into a FreeCAD document- Designed to work with the
Manipulatorworkbench and FreeCAD's new built-in transform tool; alternatively, use the automatic coupler-based PCB alignment described below. - A sketch is provided for real-time board outline editing in FreeCAD
- Components moved in FreeCAD are synced to KiCad in real time
- Auto or manual in-place PCB reloading
- Optional copper and solder-mask import, with outer copper, inner copper, and mask controlled independently
- Flex PCB bending driven by bend lines and parameters defined in KiCad
- Automatic coupler-based PCB alignment using matching
CouplerFixedandCouplerMovingfootprints, with coupler plane markers for inspection kicad-pythonis used and the workspace manager handles multiple KiCad instances & API sockets
The .kkkk file saves workspace information in JSON format.

- A diff sample of cynthion-hardware
Example: samples/build_variant.kikit_pnl and samples/build_variant.kicad_pcb.
Set BUILDEXPR in footprints' properties. This can be done quickly with Symbol Fields Table using the current sheet only scope. Remember to sync them to PCB afterward.
- Kikakuka extracts build flags from
BUILDEXPR. Selected flags are interpreted as true, and vice versa. - Footprints with the BUILDEXPR evaluated as false will be marked as DNP.
- Footprints with unset or empty BUILDEXPR will be kept as is.
A boolean expression with operators:
~Not&And|Or
It can be as simple as a build name as shown in the image above or an expression like (A | ~B) & C.
Panelization with different build variants

Single PCB without panelization can be done with frameless setting

Field#Flag or multiple flags like Field#FlagA#FlagB will set Field to the value where build flags contain all the flags.
Field#Opt=A, Field#Opt=B will be displayed as dropdown options.
The .kikit_pnl file saves panelization settings in JSON format, with PCB paths stored relative to the file's location.
Tab position candidates are determined by the PCB edge and max_tab_spacing, prioritized by divided edge length (smaller first), and skipped if there is a nearby candidate (distance < max_tab_spacing/3) with higher priority.
In the image below with debug mode on, small red dots are tab position candidates, larger red circles are selected candidates, and the two rectangles represent the two half-bridge tabs.

Auto tab is off for PCB with manual tabs.
Drag inside the PCB for moving selected tab, drag outside the PCB for changing the direction for the selected tab.

Requires FreeCAD 1.0 or later and KiCad 9.0 or later.
-
Manually install FreekiCAD to FreeCAD
- Open FreeCAD's python console: Menubar -> View -> Panels -> Python Console
- Get the installation path by executing
print(os.path.join(App.getUserAppDataDir(), "Mod"))in the Python console - Create the
Modfolder if it does not exist - Copy the FreekiCAD folder into the
Modfolder - Install kicad-python into FreeCAD by executing the following command in the Python console
import subprocess, os, sys; subprocess.check_call([os.path.join(os.path.dirname(sys.executable), "python"), "-m", "pip", "install", "kicad-python>=0.8,<0.9"])- Restart FreeCAD
-
Activate
Preferences -> Plugins -> Enable KiCad API, then close KiCad (let Kikakuka manage instances). -
Make sure the Kikakuka Workspace Manager is running.
-
FreeCAD
- Add PCB
- Switch to the
FreekiCADworkbench. - Menubar -> FreekiCAD -> Add KiCad PCB
- Switch to the
- Reload PCB
- Right-click on the board object -> Reload KiCad PCB
- Edit Board Shape
- Expand the object's children.
- Open the sketch with the
_Outlinesuffix.
- Inspect Copper Layers
- FreekiCAD imports tracks, filled zones, pads, vias, and copper-layer graphics as separate
F.Cu,In*.Cu, andB.Cuchild objects. ImportOuterCopperindependently controlsF.CuandB.Cu;ImportInnerCoppercontrolsIn*.Cu. Both default to off.- Inner layers use their physical stackup Z and are normally hidden by the board body; hide the board or make it transparent to inspect them.
- Copper is display geometry and does not add to component Z. The board thickness already includes the complete KiCad stackup.
- FreekiCAD imports tracks, filled zones, pads, vias, and copper-layer graphics as separate
- Inspect Solder Mask
ImportSolderMaskimports translucentF.MaskandB.Maskchild objects, with pad/via openings computed by KiCad plus explicit mask-layer graphics. It defaults to off.- With mask import enabled, the board body uses the configured dielectric stackup colors and KiCad opacity, or white with KiCad's default board-body opacity when no color is available. Mask opacity likewise follows its KiCad stackup color. Both display opacities are scaled to 70% in FreeCAD. With mask import disabled, the original opaque board color is preserved.
- Mask and copper are zero-thickness display geometry. Copper is placed 20 um outside the board and mask another 20 um outside copper; their physical thicknesses remain metadata only.
- Coupler-Based PCB Alignment
- Place a
CouplerFixedfootprint on the reference PCB and aCouplerMovingfootprint on the PCB to be aligned. Couplers are matched by their KiCad reference. - On reload, a linked PCB with
SnapToCouplerenabled (the default) is moved as a whole so that its moving coupler plane meets the matching fixed coupler plane face-to-face. Alignment uses each plane's position after flex-PCB bending. Each coupler is also available as a child object in FreeCAD; its plane marker is hidden by default and can be shown for inspection. - The bundled footprints are
CouplerFixedandCouplerMovinginresources/kikakuka.pretty. - Alignment example boards:
assembly-power.kicad_pcb,assembly-mcu.kicad_pcb,assembly-led.kicad_pcb, andassembly-mezzanine.kicad_pcb. - The coupler plane is defined by the footprint position, side, rotation, and these custom footprint properties:
Zmoves the plane origin along the footprint's local Z axis. It defaults to0 mm; values without a unit are millimetres, andmmandinare supported. The origin starts at the PCB surface, including the board thickness on F.Cu. The local Z direction is reversed on B.Cu.Tilttilts the plane around the footprint's local X axis. It is specified in degrees and defaults to0.
ZandTiltare independent:Tiltrotates the plane around its Z-offset origin and does not change that origin's position. The footprint's normal KiCad rotation supplies the rotation around its local Z axis.
- Place a
- Flex PCB Bending
- Draw bend lines as line segments on KiCad's
User.4layer. - Add bend parameters as
User.4text near a bend line endpoint, for examplea=-70 r=0.5ora=-70 s=0.61.- The text anchor must be within
0.1 mmof a bend line endpoint. ais bend angle in degrees.ris bend radius in mm.sis bend spanning in mm and is used to deriverwhenris omitted, using the board thickness from stackup.
- The text anchor must be within
- After loading the board in FreeCAD, each bend line appears as a child object with
Angle,Radius, andActiveproperties. - The linked PCB object also has an
EnableBendingproperty to toggle the deformation on or off. - Imported copper and solder mask are cut with the same board pieces. Rigid display faces follow each piece, while faces in a bend band are rebuilt with the wedge's curved point mapping.
- If no
User.4text is provided, the bend line still loads and can be configured directly in FreeCAD.
- Draw bend lines as line segments on KiCad's
- Add PCB
Coupler plane markers are available as child objects in FreeCAD and are hidden by default.
Manual bending checks are currently done with these sample boards:
For the implementation details of the bending pipeline, see FreekiCAD/ARCHITECTURE.md.
Kikakuka includes a KiCad footprint library in resources/kikakuka.pretty. Add that directory to KiCad's footprint library table (for example, as kikakuka) before placing these footprints:
Variabledisplays itsValueon the board. Use build-variant fields such asValue#FlagorValue#Option=Choiceto show a value selected by the active build flags or options.StringTemplateformats itsValueduring export. Braced placeholders such as{Revision}are replaced with matching footprint properties or build options after build-variant fields have been applied.CouplerFixedandCouplerMovingdefine matching planes for coupler-based PCB alignment. Give a pair the same reference; use theZandTiltproperties when the mating plane is offset or tilted from the PCB surface.Footprintis an internal, graphics-free placeholder used when Kikakuka converts an attached BOM/CPL into reference-only footprints. It normally does not need to be placed manually.
Make sure your python can import pcbnew
> python3 -c "import pcbnew; print(pcbnew._pcbnew)"
<module '_pcbnew' from '/usr/lib/python3/dist-packages/_pcbnew.so'>
On macOS, I have to use the python interpreter bundled with KiCAD
PYTHON=/Applications/KiCad/KiCad.app/Contents/Frameworks/Python.framework/Versions/Current/bin/python3
On Linux, you should be able to just use the your default python3
PYTHON=python3
Create a virtual environment and install dependencies
${PYTHON} -m venv --system-site-packages env
./env/bin/pip3 install -r requirements.txt
Update submodule
git submodule update --init --recursive
Run
./env/bin/python3 kikakuka.py
On Windows the Python interpreter is at C:\Program Files\KiCad\10.0\bin\python.exe.
But however in my Windows environment venv is not working properly, here is how I run it with everything installed in the KiCad's environment.
# Powershell
# Initialize bundled submodules after cloning
git submodule update --init --recursive
&"C:\Program Files\KiCad\10.0\bin\python.exe" -m pip install -r requirements.txt
&"C:\Program Files\KiCad\10.0\bin\python.exe" kikakuka.py# Just open it
./env/bin/python3 kikakuka.py
# Start with PCB files
./env/bin/python3 kikakuka.py a.kicad_pcb b.kicad_pcb...
# Load file (.kkkk or .kikit_pnl)
./env/bin/python3 kikakuka.py a.kikit_pnl
# Headless export for panelization or build variants
./env/bin/python3 kikakuka.py a.kikit_pnl out.kicad_pcb
# Differ
./env/bin/python3 kikakuka.py --differ a.kicad_sch b.kicad_sch
# Gerber to KiCAD Conversion
./env/bin/python3 kikakuka.py gerber.gbr out.kicad_pcb
./env/bin/python3 kikakuka.py gerber_folder out.kicad_pcb # BOM/CPL will be detected if they are in the folder
./env/bin/python3 kikakuka.py gerber.zip out.kicad_pcb
./env/bin/python3 kikakuka.py gerber.zip out.kicad_pcb bom_or_cpl_1.csv bom_or_cpl_2.csv # BOM/CPL files are determined by filename regardless of argument order
- Convert Gerber to .kicad_pcb with BOM/CPL using
Kikakuka - Footprint names are also exported, so
Tools -> Update Footprints from Librarycan bring back the footprint if the name matches - Lock the footprint, clean up with quick selection and deletion, unlock the footprint (you will need to set the
Selection Filter) - If footprint update fails, focus on the
User.Drawingslayer and setSelection FiltertoFootprints-only can help you select individual footprints and thenChange Footprint


















