koincode 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +61 -0
- package/dist/koincode +1 -3
- package/package.json +25 -2
package/README.md
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# koincode
|
|
2
|
+
|
|
3
|
+
A local-first, open-source terminal AI coding agent. Chat with AI models directly in your terminal with two modes — **PLAN** (read-only analysis) and **BUILD** (full file editing and bash execution).
|
|
4
|
+
|
|
5
|
+
No auth. No billing. Bring your own API keys.
|
|
6
|
+
|
|
7
|
+
## Requirements
|
|
8
|
+
|
|
9
|
+
- [Bun](https://bun.sh) v1.0 or later
|
|
10
|
+
|
|
11
|
+
## Installation
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npm install -g koincode
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Setup
|
|
18
|
+
|
|
19
|
+
Add your API keys via the built-in config command:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
koincode config set anthropic <your-key>
|
|
23
|
+
koincode config set openai <your-key>
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Usage
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
koincode
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
This opens the terminal UI. From there you can:
|
|
33
|
+
|
|
34
|
+
- Start a new session or resume a previous one
|
|
35
|
+
- Switch between **PLAN** mode (reads files, no writes) and **BUILD** mode (edits files, runs bash)
|
|
36
|
+
- Stream responses from your chosen AI model in real time
|
|
37
|
+
|
|
38
|
+
## Supported Models
|
|
39
|
+
|
|
40
|
+
- Claude (Anthropic) — default: `claude-opus-4-6`
|
|
41
|
+
- GPT (OpenAI)
|
|
42
|
+
- Gemini (Google)
|
|
43
|
+
- OpenRouter
|
|
44
|
+
|
|
45
|
+
## How It Works
|
|
46
|
+
|
|
47
|
+
koincode runs a local server in the background (port 37420 by default) that handles AI orchestration and session persistence. The terminal UI connects to it and executes any tool calls — file reads, writes, edits, bash — locally on your machine.
|
|
48
|
+
|
|
49
|
+
The server never touches your filesystem. All tool execution happens client-side.
|
|
50
|
+
|
|
51
|
+
## Custom Port
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
koincode --port 8080
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## Open Source
|
|
58
|
+
|
|
59
|
+
MIT licensed. Contributions welcome.
|
|
60
|
+
|
|
61
|
+
[GitHub](https://github.com/KONY05/koincode)
|
package/dist/koincode
CHANGED
|
@@ -22926,7 +22926,7 @@ function spawnServer(port) {
|
|
|
22926
22926
|
...process.env,
|
|
22927
22927
|
PORT: String(port),
|
|
22928
22928
|
NODE_ENV: "development",
|
|
22929
|
-
SENTRY_DSN:
|
|
22929
|
+
SENTRY_DSN: "",
|
|
22930
22930
|
...config2.apiKeys?.anthropic && {
|
|
22931
22931
|
ANTHROPIC_API_KEY: config2.apiKeys.anthropic
|
|
22932
22932
|
},
|
|
@@ -22980,9 +22980,7 @@ var init_server_manager = __esm(() => {
|
|
|
22980
22980
|
|
|
22981
22981
|
// src/lib/sentry.ts
|
|
22982
22982
|
import * as Sentry from "@sentry/bun";
|
|
22983
|
-
var dsn;
|
|
22984
22983
|
var init_sentry = __esm(() => {
|
|
22985
|
-
dsn = process.env.SENTRY_DSN;
|
|
22986
22984
|
if (false) {}
|
|
22987
22985
|
});
|
|
22988
22986
|
|
package/package.json
CHANGED
|
@@ -1,18 +1,41 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "koincode",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"module": "src/index.tsx",
|
|
5
5
|
"main": "dist/koincode",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist"
|
|
9
9
|
],
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"description": "An open source local-first terminal coding agent. Peer programming with any frontier model or local/free models to run agentic development.",
|
|
12
|
+
"homepage": "https://github.com/KONY05/koincode#readme",
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "https://github.com/KONY05/koincode.git"
|
|
16
|
+
},
|
|
17
|
+
"bugs": {
|
|
18
|
+
"url": "https://github.com/KONY05/koincode/issues"
|
|
19
|
+
},
|
|
20
|
+
"keywords": [
|
|
21
|
+
"ai",
|
|
22
|
+
"cli",
|
|
23
|
+
"terminal",
|
|
24
|
+
"coding-agent",
|
|
25
|
+
"llm",
|
|
26
|
+
"anthropic",
|
|
27
|
+
"openai",
|
|
28
|
+
"code-assistant",
|
|
29
|
+
"tui",
|
|
30
|
+
"bun",
|
|
31
|
+
"open-source"
|
|
32
|
+
],
|
|
10
33
|
"bin": {
|
|
11
34
|
"koincode": "dist/koincode"
|
|
12
35
|
},
|
|
13
36
|
"scripts": {
|
|
14
37
|
"dev": "bun run --watch src/index.tsx",
|
|
15
|
-
"build": "bun build bin/koincode.ts --outdir dist --target bun --external playwright --external @sentry/bun && mv dist/koincode.js dist/koincode && bun build ../server/src/index.ts --outfile dist/server.js --target bun --external playwright --external @sentry/bun"
|
|
38
|
+
"build": "bun build bin/koincode.ts --outdir dist --target bun --external playwright --external @sentry/bun --define \"process.env.SENTRY_DSN='$SENTRY_DSN'\" && mv dist/koincode.js dist/koincode && bun build ../server/src/index.ts --outfile dist/server.js --target bun --external playwright --external @sentry/bun --define \"process.env.SENTRY_DSN='$SENTRY_DSN'\""
|
|
16
39
|
},
|
|
17
40
|
"devDependencies": {
|
|
18
41
|
"@koincode/server": "workspace:*",
|