Trace Plugin works with KiCad 10 on Windows, Mac and Linux. The assistant edits your board live in KiCad's PCB Editor, and edits your schematic in its files, which the Schematic Editor then reloads.
Before you start
- KiCad 10 or newer, from kicad.org. Keep KiCad's command-line tools, which come with it: Trace uses them for checks, simulation and fabrication files.
- Trace Plugin, installed and signed in. See Trace Plugin.
- A KiCad project (
.kicad_pro) with a schematic or a board. Open the board in the PCB Editor if you want the assistant to edit it.
Turn on KiCad's API
Trace works with KiCad through KiCad's own API, which is off until you turn it on. You only do this once. The plugin shows these steps the first time you connect:
- In KiCad, open Preferences > Preferences… (Ctrl+,) from the main window. On a Mac, open KiCad > Settings… (⌘,) from the menu bar.
- In the list on the left, click Plugins.
- Tick Enable KiCad API, then click OK.
- If the PCB Editor or the Schematic Editor was already open, close it and open it again. Windows opened before the API was on cannot be reached.
- Come back to Trace Plugin and press Connect.
If KiCad is closed, the plugin offers Turn it on and start KiCad instead: it changes that one setting in KiCad's preferences and starts KiCad.
On a Mac: permissions
- Accessibility, so the plugin can save and reload KiCad's Schematic Editor around each schematic edit. Allow it when macOS asks, or switch Trace Plugin on in System Settings > Privacy & Security > Accessibility.
- Screen & System Audio Recording (called Screen Recording in older macOS), only if you want the assistant to take pictures of KiCad's editor windows. Switch Trace Plugin on in the same part of System Settings.
Connect your project
- Open your project in KiCad.
- In Trace Plugin, under Design tools, choose KiCad, then press Connect.
- Under Open projects, pick your project, or use Open a project… to open its
.kicad_pro. - Save your work in KiCad before your first request, and choose the sheet or board in the chat's document picker.
If a project has no schematic or board yet, the plugin asks you to add one in KiCad first.
Board edits
With the board open in the PCB Editor, the assistant's changes appear on it live. Each edit is one undo step: Ctrl+Z (⌘Z on a Mac). The changes stay in the open board until you save it in KiCad, or ask the assistant to save it. If the board is not open in the PCB Editor, the assistant reads the saved board file and asks you to open it before editing.
Start with one clear change in Agent, look at it on the board, then save. Run DRC before you order boards.
What changes, and what stays
- When the assistant edits a copper pour, drawing, text or via, its other settings stay as they were, such as a pour's hatch and island removal, a text's font and locks.
- A few settings cannot be carried through KiCad's API, such as a zone's lock and corner smoothing, a text's hidden state, hatch fill and stroke colour. If an edit resets one, the assistant tells you which to set again.
- Changes to a via's type, layers and tenting apply.
- Locked tracks stay locked, and advanced layout leaves locked parts where they are, including parts in a locked group.
- When the assistant updates the board from the schematic, it brings in new parts, changed footprints, pad nets and each part's value, and can remove parts you deleted from the schematic. Designator changes and other symbol fields are not carried over; use KiCad's own Update PCB from Schematic for those.
Board setup in KiCad
KiCad's API cannot change every part of Board Setup, so some settings stay in your hands:
- Manufacturer limits and net classes the assistant adds go into the project's custom rules (Board Setup > Custom Rules), which KiCad's DRC and router read. To make one a KiCad net class as well, add it in Board Setup > Net Classes. The minimums in Board Setup > Constraints still apply beside them; if your fab allows less, lower them there.
- Number of layers: set it in Board Setup > Board Stackup.
- Teardrops: use Edit > Edit Teardrops in the PCB Editor.
- Length matching: the assistant measures lengths and tells you the target for each signal. Tune them in KiCad with Route > Tune Length.
Shape a board from a DXF drawing
Put the DXF file, for example an enclosure drawing, in your project folder, then ask the assistant to shape the board from it. Name the file, and the drawing's outline layer if it has several layers. Only the outline layer is cut. Holes, keep-outs and openings drawn on other layers are not cut through your board; the assistant reports where each one is so it can be placed exactly.
Use a file in the project folder. A DXF attached to the chat is not saved into your project, so the assistant cannot shape the board from it.
Schematic edits
KiCad 10's API cannot edit a schematic, so the plugin edits the sheet's file:
- If the Schematic Editor has unsaved changes, the plugin saves them first, so the edit builds on them.
- It keeps a copy of the sheet as it was, then writes the edited file.
- The Schematic Editor reloads the file (as File > Revert does), and you see the change.
The reload clears KiCad's undo history for the schematic and returns the editor to the root sheet. Check the components, wires and labels, then run ERC before you update the board.
Automatic saving and reloading works on Windows, and on a Mac once Trace Plugin has the Accessibility permission. On Windows, Trace Plugin 2.0 fixes a reload or save in the open editor that sometimes failed.
If the Schematic Editor is closed, KiCad reads the new file the next time you open it.
A sheet from an older KiCad version is upgraded to KiCad 10's format on its first edit, as KiCad 10 does when it saves.
Undo and backups
Because the reload clears KiCad's undo history, the plugin keeps the last few versions of each sheet in a .trace/kicad/backups folder beside the sheet. Each copy is named after the sheet, with the date and time it was taken.
To go back to one:
- Save or set aside any work you want to keep in the Schematic Editor.
- Copy the backup over the sheet's
.kicad_schfile, giving it the sheet's own file name. - Use File > Revert in the Schematic Editor, or open the sheet again.
These are copies of single sheets, not of the whole project. For a full history, keep your project in version control or take your own backups.
Parts and libraries
New parts from Trace's catalog or from Component Studio go into the project's TraceParts symbol and footprint libraries, each with a 3D model. The first time, close and reopen the project in KiCad once before the new library shows up in Place Symbol; parts installed after that show up straight away.
KiCad's stock libraries depend on your installation, so a stock part the assistant names may not be on your computer. Follow the assistant's notice to install it.
Simulation
Ask the assistant to simulate your schematic. In KiCad it simulates the saved schematic, so save first: if the Schematic Editor has unsaved changes, the assistant asks you to save. See Simulate a plugin project.
Fabrication files
Ask for Gerber, drill and position files and the plugin makes them with KiCad's own tools, from the board as it is open (unsaved changes included). The ZIP for your fab holds the Gerber and drill files; the position file stays beside it for your assembler. Check the files in a Gerber viewer before you order boards.
Limits in KiCad
- Changing a part to another symbol is skipped in KiCad. The drawing stays as it was, and the assistant says why. Replace the part yourself, or ask the assistant to remove it and add the new one.
- Installing a corrected part over one already placed does not update the placed copies yet. Use KiCad's Update Symbols from Library in the Schematic Editor.
- Giving every part in the project library the same fields is available for Altium only.
- Sheet size: the assistant does not change a KiCad sheet's size. Set it in KiCad yourself.
- Library Remediation checks Altium libraries; it is not a KiCad library check.
Troubleshooting
- The API is on but KiCad cannot be reached: close and reopen the PCB Editor or Schematic Editor windows that were open before you turned the API on, then press Connect.
- Trace needs KiCad 10 or newer: update KiCad from kicad.org, then connect.
- The board is not being edited: open it in KiCad's PCB Editor and check the chat's document picker.
- The schematic was written but looks unchanged: use File > Revert in the Schematic Editor. On a Mac, check the Accessibility permission.
- Trace could not save the Schematic Editor's unsaved changes: save in KiCad (Ctrl+S, or ⌘S on a Mac), then ask again.
- Pictures of the editor fail on a Mac: allow Screen & System Audio Recording, and keep the editor window open, not minimized.
- A new part is missing from Place Symbol: close and reopen the project in KiCad once.
- Connection closed: KiCad was closed, or its API was turned off. Start KiCad again, then press Reconnect.
To report a problem, use Report a problem… in the plugin's Menu, or email hello@buildwithtrace.com with your Trace Plugin and KiCad versions.