# node-red-contrib-gpt-engineer-api

> adds Node to call gpt-engineer through ssh connection and cli commands

Latest version **1.0.1** (published 2023-10-18) · ISC license · 0 weekly downloads

## Install

```sh
npm install node-red-contrib-gpt-engineer-api
pnpm add node-red-contrib-gpt-engineer-api
yarn add node-red-contrib-gpt-engineer-api
bun add node-red-contrib-gpt-engineer-api
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2023-10-18 |
| First published | 2023-10-18 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=12.0.0 |
| Dependencies | 1 |
| Unpacked size | 62.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Arsen Sirekanyan |
| Maintainers | arssirek |
| Keywords | node-red, openai, chatgpt, gpt-engineer, cli |

## Links

- npm: https://www.npmjs.com/package/node-red-contrib-gpt-engineer-api
- Repository: https://github.com/ArsSirek/node-red-contrib-openai-wrapper
- Homepage: https://github.com/ArsSirek/node-red-contrib-gpt-engineer-api#readme
- Issues: https://github.com/ArsSirek/node-red-contrib-openai-wrapper/issues
- npm.io page: https://npm.io/package/node-red-contrib-gpt-engineer-api

## Dependencies (1)

- [ssh2](https://npm.io/package/ssh2.md) ^1.14.0

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2023-10-18
- 1.0.0 — 2023-10-18

## README

# General note

This node is a wrapper allowing to interact with separate gpt-engineer installation through ssh connection and cli commands.


## Requirements
- your own openai API key
- separate gpt-engineer installation with ssh server (may be on different server form the node-red server)
`docker build -t mygptengineer ./docker/ --load`
`docker-compose up -d`
you can now connect to gpt-engineer with `ssh sshuser@localhost -p 2222`
- or if you are checking connection from docker container `ssh sshuser@gpt-engineer -p 22`

### to run gpt-engineer locally you can now use `docker run -it --rm -e OPENAI_API_KEY="YOUR OPENAI KEY" -v ./your-project:/project gpt-engineer`



## usage
payload.topic - 'prompt' | 'response'
 - `prompt` - means initial prompt to be placed in prompt file that gpt-engineer expects
 - `response` - means that current message is ment as response to gpt-engineer interactive question

payload.value
- in case of topic = prompt, the payload.value should contain the prompt string
- in case of topic = response, the payload.value should contain the cli question text response

payload.projectName
 - string containing unique project name, as the files will be generated on the gpt-engineer server


try using example

## SECURITY Note:
- this node is not meant to be used on shared hosting, or shared node-red environments, it may leave openai key in plain text in gpt-engineer server logs as this uses cli to execute gpt-engineer

---
_Source: https://npm.io/package/node-red-contrib-gpt-engineer-api · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
