claudecodeui icon indicating copy to clipboard operation
claudecodeui copied to clipboard

No Registration Screen

Open zainhoda opened this issue 1 year ago • 6 comments

On first startup, I'm unable to get past the login screen.

Image
% npm run dev

> [email protected] dev
> concurrently --kill-others "npm run server" "npm run client"

[1] 
[1] > [email protected] client
[1] > vite --host
[1] 
[0] 
[0] > [email protected] server
[0] > node server/index.js
[0] 
[0] Connected to SQLite database
[1] 
[1]   VITE v7.0.4  ready in 138 ms
[1] 
[1]   ➜  Local:   http://localhost:3001/
[1]   ➜  Network: http://192.168.0.130:3001/
[0] No .env file found or error reading it: ENOENT: no such file or directory, open '/Users/zain/git/claudecodeui/.env'
[0] PORT from env: undefined
[0] Database initialized successfully
[0] ✅ Database initialization skipped (testing)
[0] Claude Code UI server running on http://0.0.0.0:3000
[1] 9:36:48 AM [vite] http proxy error: /api/auth/status
[1] AggregateError [ECONNREFUSED]: 
[1]     at internalConnectMultiple (node:net:1139:18)
[1]     at afterConnectMultiple (node:net:1714:7)

zainhoda avatar Jul 31 '25 13:07 zainhoda

+1

tiagovb avatar Aug 02 '25 17:08 tiagovb

Try deleting the database from server/database/auth.db and it should show up again. If not can you please let me know a few more info about your setup?

viper151 avatar Aug 11 '25 11:08 viper151

Faced same issue here. In my case, there's a process hold on port 3001 so that Claude Code UI API can not receive the request correctly. So close the process and restart the server works for me.

ifrankwang avatar Sep 13 '25 14:09 ifrankwang

+1 - OOB experience on both on my Mac and Windows environments.

RapidAlexander avatar Oct 05 '25 14:10 RapidAlexander

Hi @viper151 , where do we find server/database/auth.db ? I installed claude-code-ui using npm install -g @siteboon/claude-code-ui (I believe). Then, I run claude-code-ui in different directories depending on the use case. In none of those directories do I see any server or .env being created. It would be good if the claude-code-ui command would print out where it's storing credentials, or if it got the credentials from environment variables.

kovkev avatar Nov 02 '25 06:11 kovkev

@kovkev thanky ou for the comment. I'm deploying #221 which will fix that.

viper151 avatar Nov 02 '25 07:11 viper151