# GoBGP

> BGP implemented in the Go Programming Language

Source: https://talira.ai/catalog/gobgp-bh743gxs
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Infrastructure, Command-line tool, Library
- Categories: [networking / routing daemons](https://talira.ai/categories/networking/routing-daemons)
- Platforms: linux, cli[^7]
- Licence: Apache-2.0[^3][^4]
- Pricing: Free and open source[^3]
- Free tier: yes[^3]
- Self-hostable: yes[^3]
- API: yes[^5][^6]

GoBGP is an open source BGP implementation written from scratch in Go, designed for multicore CPUs and for automation: it's driven through a gRPC API (from Python, C++ or any gRPC language) as well as the gobgp CLI and configuration files in TOML, YAML, JSON or HCL, and it can be embedded in Go programs as a native BGP library. Its configuration follows an IETF vendor-neutral model. It works as a route server or route reflector and supports EVPN, Flowspec, RPKI, BGP-LS, SR Policy, add-paths, graceful restart, BFD, confederations, unnumbered BGP, peer groups, dynamic neighbors, MRT dumps and BMP. GoBGP doesn't program the kernel's routing table itself: it hands routes to the zebra daemon of [FRRouting](https://talira.ai/catalog/frrouting-v2d7m7mq.md) or Quagga for that. Apache 2.0.

## Links

- Website: https://osrg.github.io/gobgp/
- GitHub: https://github.com/osrg/gobgp
- Docs: https://github.com/osrg/gobgp/tree/master/docs/sources

## Ways to install

### Package managers

- [APT](https://talira.ai/catalog/apt-d7essv0z.md): <https://packages.debian.org/source/stable/gobgp>[^1]

## Problems it solves

- control BGP sessions and routes from my own program over an API instead of editing a router config
- embed a BGP speaker in a Go service to announce or learn routes
- run a BGP route server for an internet exchange with per-peer policies
- announce Flowspec rules to upstream routers to drop DDoS traffic
- a BGP route reflector for our data center that our automation can drive
- inject and withdraw BGP routes from a script during a failover
- a BGP EVPN control plane for VXLAN on Linux hosts
- validate BGP route origins against RPKI in a lightweight daemon
- dump BGP tables to MRT files or send them to a BMP collector
- run unnumbered BGP between leaf and spine switches on Linux

## Features

- gRPC API for managing the daemon from any gRPC language
- gobgp command-line tool
- Go native BGP library
- configuration in TOML, YAML, JSON or HCL
- route server and route reflector
- policy based on an IETF vendor-neutral configuration model
- EVPN, Flowspec, BGP-LS and SR Policy
- RPKI origin validation
- MRT dumps and BMP
- graceful restart, add-paths, peer groups, dynamic neighbors, eBGP multihop, TTL security, BFD, confederations
- unnumbered BGP
- FIB updates through zebra from FRRouting or Quagga
- Sentry error tracking and metrics

## Limitations

- Doesn't update the kernel routing table by itself: GoBGP uses the zebra daemon from FRRouting or Quagga for FIB changes[^2]

## Capabilities

- Has an API: plan not known
- Has a command line tool: plan not known
- Has official SDKs: plan not known

## Trust

Overall: 0.26 out of 1.
Signals: backing 0.00, extensibility 0.40.

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [BIRD](https://talira.ai/catalog/bird-3twzfbsh.md): BIRD Internet Routing Daemon: BGP, OSPF, RIP and Babel with a powerful route filtering language
- [ExaBGP](https://talira.ai/catalog/exabgp-4yzh96jp.md): The BGP swiss army knife of networking
- [OpenBGPD](https://talira.ai/catalog/openbgpd-cd5n33en.md): Free implementation of BGP-4 that lets ordinary machines act as routers
- [FRRouting](https://talira.ai/catalog/frrouting-v2d7m7mq.md): Free and open source Internet routing protocol suite for Linux and Unix platforms

## Sources

[^1]: https://deb.debian.org/debian/dists/stable/main/source/Sources.xz (checked 21 Nov 2026)
[^2]: https://github.com/osrg/gobgp/blob/master/docs/sources/zebra.md (checked 20 Nov 2026)
[^3]: https://github.com/osrg/gobgp (checked 20 Nov 2026)
[^4]: https://github.com/osrg/gobgp/blob/master/LICENSE (checked 20 Nov 2026)
[^5]: https://osrg.github.io/gobgp/ (checked 20 Nov 2026)
[^6]: https://github.com/osrg/gobgp/blob/master/docs/sources/grpc-client.md (checked 20 Nov 2026)
[^7]: https://github.com/osrg/gobgp/releases (checked 20 Nov 2026)
