# codegen

codegen is a code generator that produces the boilerplate Antrea needs for a consistent build. It is open source and self-hosted, installable on Docker Hub.

Canonical page: https://ourlocalhost.com/app/5497/codegen

## Description

Codegen is a code generator that produces the boilerplate Antrea needs for a consistent build. It automatically generates the background code for the Antrea Kubernetes networking project, reducing manual errors and keeping the application stable and predictable across environments.

## Platform availability

Available on 0 of 10 platforms.

## Health score

47/100 (Fair), based on 4 of 5 factors.
- Maintained: 58 (last commit 172 days ago)
- Popular: 74 (5,180 GitHub stars)
- Easy to install: 25 (0 install platforms, install notes, Docker image)
- Security check: 15 (2 serious findings, 5 minor)

## Security check

2 serious findings: Uses torch 1.13.1, which has a known critical vulnerability; Uses transformers 4.30.0, which has a known critical vulnerability.
Automated checks on commit ec21c93, 18 Oct 2026. Not an audit.

## Links

- Docker Hub: https://hub.docker.com/r/antrea/codegen
- GitHub: https://github.com/salesforce/CodeGen

## Common questions

### How can I confirm oapi-codegen is installed correctly before generating code?

Install the tool with the go install command, then run oapi-codegen -version to confirm it is available. If the version check fails, the terminal cannot find the generator and no code will be produced.

### What configuration is required when my OpenAPI file references external files?

If the OpenAPI file points to external files, add import-mapping to the codegen config before running the generator. Missing this setting can make the generator fail even when the rest of the config looks correct.

### Can Plasmic Codegen output be self-hosted?

Yes, the generated code can be self-hosted. The codegen engine and editor can also be self-hosted, with details in the open-source repository.

### Does Codegen on-prem deployment keep data inside my own infrastructure?

Yes, Codegen on-prem deployment runs AI agents inside your own infrastructure. This lets you maintain data control in-house.

---
Source: Our Local Host (https://ourlocalhost.com/app/5497/codegen), the self-hosted and open-source app directory.
