Go into the 1Password desktop app and open Settings. In the Labs tab, click "Enable custom browser support" and enable it. In the Browser tab, click "Add Browser". In your Applications folder, find and add "DuckDuckGo", then authorize 1Password when prompted. Once you've done that, restart DuckDuckGo.