Skip to main content

Naver Clova X Unofficial API

clova-logo

PyPI package PyPI

Unofficial API for Naver Clova X, a Korean AI LLM (Language Model) service.

Install

pip install clovax
  1. Install Get cookies.txt LOCALLY
  2. Export cookie
  3. Set cookie file path to get_cookie function

Usage

Start a conversation

from clovax import ClovaX

c = ClovaX()
c.get_cookie("[Your netscape cookie file]")
log = c.start("Hello world!")
print(log["text"])

Continue a conversation

from clovax import ClovaX

c = ClovaX()
c.get_cookie("[Your netscape cookie file]")
log = c.start("Hello world!")
print(log["text"])
# At this time, you can continue the conversation using existed session (conversation ID)
log = c.conversation("Who are you?")
print(log["text"])

Regenerate a conversation

from clovax import ClovaX

c = ClovaX()
c.get_cookie("[Your netscape cookie file]")
log = c.start("Hello world!")
log = c.regenerate()
print(log["text"])

Conversation with a skillset

from clovax import ClovaX
import json

c = ClovaX()
c.get_cookie("clova-x.naver.com_cookies.txt")
log = c.start("가을에 입을만한 바지 추천해 줘", skillsets=["shopping", "travel"])
with open("./test.html", "w", encoding="utf-8") as f:
    f.write(log["contents"][1]["content"])
print(log["text"])

TODO

  • Login using given naver ID and password
  • Get existed conversation using conversation ID
  • Proxy support
  • Support personas

Metadata

Release files for clovax 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for clovax 0.1.1
File Size Uploaded Provenance Actions
clovax-0.1.1.tar.gz 17.4 kB Without provenance Details for clovax-0.1.1.tar.gz

Release files / clovax-0.1.1.tar.gz

Download URL clovax-0.1.1.tar.gz
Size 17.4 kB
Tags Source
SHA-256 checksum
How to use checksums
23245a0874528fbeacf488b248851277fef1e1f6d26b9b65b344a659de3d45fe
BLAKE2b-256 checksum
How to use checksums
c729da33a62f4559f5bc9f72ce7a979dca9ff1ea404e10230690a745edb852fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Security for clovax 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page