https://github.com/arcadeai/cli-agent-template
https://github.com/arcadeai/cli-agent-template
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/arcadeai/cli-agent-template
- Owner: ArcadeAI
- Created: 2025-07-24T17:48:20.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-07-28T01:51:29.000Z (8 months ago)
- Last Synced: 2025-07-28T02:28:05.741Z (8 months ago)
- Language: TypeScript
- Homepage: https://www.arcade.dev
- Size: 51.8 KB
- Stars: 0
- Watchers: 0
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Arcade CLI Agent Template
## Prerequisites
- Bun installed on your computer - https://bun.com/docs/installation
- An OpenAI API Key - https://openai.com/
- An Arcade.dev API key - https://www.arcade.dev/
## This Repo
To install dependencies:
```bash
bun install
```
Then, set up the environment variables you will need:
```bash
cp .env.example .env
# fill it out with your information!
```
To run:
```bash
./agent.ts
```
To Compile as a single-file executable
```bash
bun build ./agent.ts --compile --outfile agent
```
Now you can run the program with `./agent` (no `.ts`) directly.
This project was created using `bun init` in bun v1.2.9. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.
## Notes
- **Why Bun and TS?**: This is a template project for engineers. JS is the most popular programming language, and type-safety is helpful in IDEs when learning. Bun is a bit of a wildcard, because it's new and less popular than node.js, but it solves all of the TS/compiler problems... which I think will make it easier for folks to get started on the demo. Bun also makes it really easy to package and distribute binaries of applications.
## Testing
```bash
bun test
```
Testing Notes:
- We mock all OpenAI API calls, so an API Key is not needed.