---
title: Other Go applications
description: Install and configure Honeybadger for Go applications with automatic panic monitoring and manual error reporting.
url: https://docs.honeybadger.io/lib/go/integrations/other/
---

**Typical installation time:** 5 minutes

Hi there! You’ve found Honeybadger’s guide to **Go error tracking** for standalone applications, CLI tools, workers, and other non-HTTP Go programs. Once installed, Honeybadger will report panics and errors from your application.

## Installing the package

To install, grab the package from GitHub:

```sh
go get github.com/honeybadger-io/honeybadger-go
```

Then add an import to your application code:

```go
import "github.com/honeybadger-io/honeybadger-go"
```

## Configuring your API key

Configure your API key using `honeybadger.Configure`:

```go
honeybadger.Configure(honeybadger.Configuration{APIKey: "PROJECT_API_KEY"})
```

You can also configure Honeybadger via the `HONEYBADGER_API_KEY` environment variable. See [Configuration](https://docs.honeybadger.io/lib/go/reference/configuration/) for more options.

## Enabling automatic panic reporting

To report all unhandled panics which happen in your application, add the following to `main()`:

```go
func main() {
    defer honeybadger.Monitor()
    // application code...
}
```

**Important:** `honeybadger.Monitor()` will re-panic after it reports the error, so make sure that it is only called once before recovering from the panic (or allowing the process to crash).

You can also monitor specific functions:

```go
func risky() {
    defer honeybadger.Monitor()
    // risky business logic...
}
```

## Manually reporting errors

To report an error manually, use `honeybadger.Notify`:

```go
if err != nil {
    honeybadger.Notify(err)
}
```

See [Reporting errors](https://docs.honeybadger.io/lib/go/errors/reporting-errors/) for more details.

## Testing your installation

To verify that your installation is working, you can add a test panic:

```go
func main() {
    defer honeybadger.Monitor()
    panic("Testing Honeybadger!")
}
```

Run your application, then check your Honeybadger dashboard for the error.

## Next steps

* Learn how to [report errors manually](https://docs.honeybadger.io/lib/go/errors/reporting-errors/)
* Add [context to your errors](https://docs.honeybadger.io/lib/go/errors/context/)
* Explore [configuration options](https://docs.honeybadger.io/lib/go/reference/configuration/)

---

## Try Honeybadger for FREE

Intelligent logging, error tracking, and Just Enough APM™ in one dev-friendly platform. Find and fix problems before users notice.

[Start free trial](https://app.honeybadger.io/users/sign_up)

[See plans and pricing](https://www.honeybadger.io/plans/)
