How to install the Go LSP (gopls) plugin in Claude Code
Make gopls available to Claude Code and open the Go module or workspace the language server should index.
- Install the language server separately and make sure gopls is available on your PATH.
- Start Claude Code once to register Anthropic’s official marketplace. Then run the install command in your terminal.
- Start a new Claude Code session in a project for the language and open a source file to confirm the server loads.
Claude Code · Install in Claude Code
claude plugin install gopls-lsp@claude-plugins-officialTry a first task
Trace a changed Go interface through its implementations. Confirm a known stale method signature is flagged by gopls before checking that the fix removes it and the package still compiles.
Package components
- Go language server