# Import Keybase PGP to GPG
After [installing](https://keybase.io/download) the [keybase](https://keybase.io/) [command-line tool](https://keybase.io/docs/command_line/basics) onto a new / fresh computer,
you may want to import your PGP key to the local keyring so that you may use the
keys with [GPG](https://gnupg.org/).
Import your PUBLIC PGP key:
```sh
keybase pgp export|gpg --import -
```
For your SECRET PGP key, you have to be more assertive:
```sh
keybase pgp export -s|gpg --allow-secret-key-import --import -
```
You will then want to trust the keys as your own, so that GPG can be "sure"
they're safe to use
```sh
gpg --editkey you@keybase.io
trust
5
y
save
```