Deep learningyou can see inside.
CodefyUI is an open-source, node-based builder for deep learning. Drag layers onto a canvas, wire them into a graph, press Run, then click any node to see the numbers it produced.
This graph runs right here.
1,1,8,8explicit1122heatmapOne canvas, from the first layer to a trained model.
The real editor is a browser app served by a single local process. Everything you build is a graph you can save, share and run again.
MNISTtrainCrossEntropyLoss64true7Adam0.0015autoMNISTtest256lineTest accuracy—Every node, by name.
The built-in library covers classical ML, CNNs, sequence models, transformers, LLMs, diffusion, reinforcement learning and vision-language-action models. Each category keeps its colour on the canvas.
- Start
- Dataset
- ImageFolderDataset
- DataLoader
- DatasetBatch
- Transform
- HuggingFaceDataset
- KaggleDataset
- TensorInput
- TextInput
- CSVReader
- ColumnSelector
- RowSelector
- Normalize
- SyntheticDataset
- SyntheticShapes
- SyntheticSegmentation
- SyntheticSequence
- TrainTestSplit
- KFoldSplit
- DatasetSplit
- ResizeTransform
- ToTensorTransform
- NormalizeTransform
- RandomCrop
- RandomHorizontalFlip
- RandomRotation
- ColorJitter
- RandAugment
- ComposeTransform
- TensorDataset
- Map
- Reduce
- Switch
- Conv2d
- Conv1d
- Conv2dExplicit
- ConvTranspose2d
- MaxPool2d
- AvgPool2d
- AdaptiveAvgPool2d
- BatchNorm2d
- Dropout
- Activation
- LSTM
- GRU
- RNNCell
- MultiHeadAttention
- TransformerEncoder
- TransformerDecoder
- MoELayer
- LLMChat
- Tokenizer
- WordVector
- TextEmbedding
- EmbeddingScatter
- CosineSimilarity
- AttentionMask
- AttentionHeatmap
- PositionalEncoding
- CausalLMModel
- LMCrossEntropyLoss
- LMTokenizer
- TextCorpusDataset
- LMTokenizedDataset
- DataMixDataset
- PerplexityEvaluate
- TextGenerate
- DocumentLoader
- TextChunker
- VectorStore
- Retriever
- PromptBuilder
- HFTextGenerate
- Upsample
- TimestepEmbedding
- Lerp
- GaussianNoise
- DDPMSampler
- DiffusionUNet
- DiffusionTrainingLoop
- DQN
- PPO
- EnvWrapper
- RewardModel
- KLDivergence
- PolicyRollout
- PPOClipObjective
- GroupRelativeAdvantage
- Discount
- GridWorldEnv
- PreferenceDataset
- BradleyTerryLoss
- BradleyTerryTrain
- RLTrainingLoop
- VLAModel
- VLARollout
- VLAActionEval
- PushWorldEnv
- PushWorldDemos
- KNN
- LinearRegression
- LogisticRegression
- DecisionTreeClassifier
- RandomForestClassifier
- SVMClassifier
- MLPClassifier
- Accuracy
- RegressionMetrics
- Optimizer
- Loss
- TrainingLoop
- EvaluateModel
- LRScheduler
- SequentialModel
- BackwardOnce
- FreezeParameters
- BatchNorm1d
- LayerNorm
- GroupNorm
- InstanceNorm2d
- Add
- MatMul
- Mean
- Multiply
- ScalarMultiply
- Permute
- Softmax
- Argmax
- Split
- Squeeze
- Stack
- TensorCreate
- Unsqueeze
- MaskedFill
- TensorStats
- ImageReader
- ImageWriter
- ImageBatchReader
- FileReader
- CheckpointSaver
- CheckpointLoader
- ModelLoader
- ModelSaver
- Inference
- GraphInput
- GraphOutput
- VideoLoad
- VideoWrite
- Reshape
- Concat
- Flatten
- Linear
- Visualize
- Embedding
- PythonScript
- ScatterPlot2D
- DecisionBoundary
Learn AI by looking inside it.
A model stops being a black box when you can click on it. CodefyUI shows what every layer did to the numbers, so a student learns from the run in front of them, not from a diagram.
A student’s first hour
- See every tensor’s shape
Run a graph and click any node. The Inspector shows the shape, dtype, min, max and mean of what went in and what came out, with the changed cells coloured.
- Run real examples
Open a working graph from the Template Gallery, such as a CNN on MNIST or a local RAG, and run it as it is before changing anything.
- Change one thing and compare
Edit one parameter and run again. Only that node and what follows it re-run, and earlier runs stay in the Runs tab.
- Ask the Copilot to explain
In Ask mode, Copilot reads the open graph and explains what it does, and it cannot change the canvas.
What a teacher gets
- Teaching plugins
Packs that follow a textbook module by module, with Edu nodes that show one idea as a row of named steps.
- One server or one install each
Serve one instance to the room over the LAN, or install it on every laptop. A shared instance has no student accounts, so read the shared-instance guide first.
- Labs as git projects
Hand out a lab as a project repository. Students clone it and open it with cdui start --project, and cdui project restore installs the plugins it pins.
- A model that stays in the room
Point Copilot at a local OpenAI-compatible server such as Ollama or LM Studio, so prompts and graphs go to a model on your own hardware instead of a cloud provider.
Built for teaching.
CodefyUI is built for teaching. Plugin packs follow a textbook module by module, and every Edu node splits one idea into named steps that the Teaching Inspector shows a row at a time.
Teaching Inspector
Record every node’s full output, compare a segment’s head input with its tail output, and turn on verbose internals to see attention scores and other values a layer normally hides.
How the Teaching Inspector worksEdu-ColumnStats
foundations · ClassicalPopulation standard deviation, one step per row. Edit the column and watch each step recompute.
- sumΣx
- divideΣx ÷ n = mean
- deviations²(x − mean)²
- variancemean of deviations²
- sqrt√variance = σ
Plugin packs
foundationsI1 Data representation · I2 Classical MLdeepI3 Vision · I4 SequencesrlI5 Reinforcement learningeduHands-on labs for I1 and I2statsDescriptive statistics for any dataset
cdui plugin install foundations deep rlA finished graph keeps working after the lesson.
A graph you built in a lesson can run overnight, answer HTTP requests and be versioned in git.
Runs belong to the server and queue per device, so closing the tab does not stop them. Sweep one graph over a grid or a random sample of parameters.
Read more about queue runs and sweepsFreeze a saved graph as a versioned app behind API keys. Every invoke is recorded, and editing the canvas never changes what is published.
Read more about publish as an apiA project is a git repository. Graphs are saved as folders, one file per node, so a diff shows the parameter that changed. The Source Control tab stages, commits, branches, pulls and pushes without leaving the editor.
Read more about keep it in gitThe ResNet-18 CIFAR-10 example reaches 95.48% test accuracy, and two runs with the same seed match bit for bit.
Read more about reproduce a baseline
# Submit a graph to the server's queue. # The run keeps going after the terminal closes. $ cdui run examples/Usage_Example/CNN-MNIST/TrainCNN-MNIST/graph.json # Run one graph over a grid of parameter values. $ curl -X POST http://127.0.0.1:8000/api/sweeps \ -H "X-CodefyUI-Token: $TOKEN" \ --data "@sweep.json"
Start from a graph that already works.
Example graphs open as tabs. The Template Gallery is tagged by what you want to do, practical examples first. Run one as it is, then take it apart.
Browse the Template GalleryModel architectures
- ResNetCNN
- ConvNeXtCNN
- EfficientNetCNN
- U-NetCNN
- ViTTransformer
- Swin TransformerTransformer
- BERTLLM
- GPTLLM
- LLaMALLM
- DiTDiffusion
- LSTM time seriesRNN
- BiGRU speech recognitionRNN
- Seq2Seq with attentionRNN
- DQN AtariRL
- PPO roboticsRL
Hands-on
- Train a CNN on MNIST
- Find a learning rate
- Split and check for leaks
- Five seeds, mean and spread
- Transfer with a frozen backbone
- king − man + woman ≈ queen
- Fully local RAG
- Forward diffusion on a digit
A new node is one Python file.
Subclass BaseNode, declare ports and parameters, and drop the file into custom_nodes. After a reload, it appears in the node library with its own card.
Plugins
Install packs from the Plugin Center or the terminal. Third-party packs come from GitHub, pinned to a commit and checked before they load.
cdui plugin install owner/repoCopilot, an official plugin, is an agent in a side panel. It follows Agent Skills, builds and edits graphs, and runs them only after you approve, with OpenAI, ChatGPT, Claude, OpenRouter or a local model.
from app.core.node_base import BaseNode, DataType, PortDefinition
class MyNode(BaseNode):
NODE_NAME = "MyNode"
CATEGORY = "Custom"
DESCRIPTION = "Does something"
@classmethod
def define_inputs(cls):
return [PortDefinition(name="input", data_type=DataType.TENSOR)]
@classmethod
def define_outputs(cls):
return [PortDefinition(name="output", data_type=DataType.TENSOR)]
def execute(self, inputs, params):
return {"output": inputs["input"]}Install in one line.
The installer sets up git, uv and Python, downloads a prebuilt editor and picks a PyTorch build for your GPU. Node.js is not needed.
Runs on CPU, NVIDIA CUDA, Apple Silicon MPS and AMD ROCm.
Full installation guide- 01
Install
curl -fsSL https://raw.githubusercontent.com/CodefyUI/CodefyUI/main/install.sh | bashpowershell -ExecutionPolicy ByPass -c "irm https://raw.githubusercontent.com/CodefyUI/CodefyUI/main/install.ps1 | iex" - 02
Start the server, from any new terminal
cdui start - 03
Open the editor
localhost:8000
Free to use, open to read.
CodefyUI is licensed under AGPL-3.0. Running it as published, on a laptop, in a lab or on a school server, needs no commercial license. For closed-source, SaaS or OEM use, a commercial license is available from the maintainers.
Star on GitHub