---
title: "How Does psql -h pg.neon.tech Work?"
url: https://daily.dev/posts/how-does-psql--h-pg-neon-tech-work--dnkzxn8hm
source_url: https://neon.com/blog/how-psql-pg-neon-tech-works
type: article
source: "Neon"
published: 2026-07-09T06:57:57.288Z
updated: 2026-07-09T07:02:52.333Z
tags: ["postgresql"]
reading_time: 4
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# How Does psql -h pg.neon.tech Work?

**[Neon](https://daily.dev/sources/neontech)** · 4 min read · 0 upvotes · 0 comments

## Summary

Neon's `psql -h pg.neon.tech` command lets developers connect to any Neon project without remembering credentials. Behind the scenes, a 'Link Proxy' server speaks the Postgres protocol and uses the NoticeResponse message type to display a clickable authentication URL. The control plane then feeds connection details back to the Link Proxy, which forwards all traffic between psql and the actual Postgres compute. Both the regular Neon Proxy and Link Proxy are open source.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://neon.com/blog/how-psql-pg-neon-tech-works>

---

Tags: [#postgresql](https://daily.dev/tags/postgresql)

[View this post on daily.dev](https://daily.dev/posts/how-does-psql--h-pg-neon-tech-work--dnkzxn8hm)
