Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ashercn97/autochat
A tiny node package that allows you to interact with anthropic's Claude programatically and for **free**. PROOF OF CONCEPT ANTHROPIC DONT SUE ME
https://github.com/ashercn97/autochat
Last synced: 12 days ago
JSON representation
A tiny node package that allows you to interact with anthropic's Claude programatically and for **free**. PROOF OF CONCEPT ANTHROPIC DONT SUE ME
- Host: GitHub
- URL: https://github.com/ashercn97/autochat
- Owner: ashercn97
- Created: 2024-02-27T20:14:54.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-02-27T20:23:48.000Z (9 months ago)
- Last Synced: 2024-02-27T21:34:47.588Z (9 months ago)
- Language: JavaScript
- Size: 23.1 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## AutoChat
This is a WIP that uses puppeteer to talk to Claude programatically.
It currently supports:
- An easy-to-use client
- Keeping data for quick login## How to use
First, `git clone https://github.com/ashercn97/AutoChat.git`
Then, setup a `config.js` file in the root of the project. It should look like:```
const USER = 'google username'
const PASS = "google password"export { USER, PASS }
```Finally, write the code! Here is what it could look like:
```
import { AnthropicClient } from "./src/client/first.js";const client = new AnthropicClient(false); // whether or not youve used it before/there is a data folder on your computer. You must change it once you use it.
await client.setup();
const res = await client.send("API For free?!?!");
console.log(res.output);
await client.close();
```## Plans
* move to typescript
* implement a self-hosted server
* figure out how to make it work in headless mode/write a workaround