Skip to content

nt1r/claude-api-server

Repository files navigation

Claude-API-Server

Unofficial API for Claude 2. Run as a Ktor Server.

This is an unofficial project for Claude 2. It uses Ktor as the Http Client and server side, running on 127.0.0.1:8001 by default.

Routing

Please check out file Routing.kt in controller.plugins

  • /conversations
    • GET: get all conversations
    • POST: create a new conversation
  • /conversation-history/{uuid}
    • GET: get conversation history (message list) by conversation UUID
  • /conversation/{uuid}
    • POST: append a new chat message to conversation
    • DELETE: delete a conversation by UUID
  • /generate-conversation-title/{uuid}
    • POST not working yet

Cookie

Try to find it in your browser. I will not teach you how to do it.

Organization UUID

Try to find it in your browser. I will not teach you how to do it.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published