summaryrefslogtreecommitdiffhomepage
path: root/packages/sdk/python/docs/usage/files_projects.md
blob: 47f255e5a7d527894d0bdf72677a1ca0f4c14591 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Files & Projects

Access file status and project information.

```python
from opencode_ai import OpenCodeClient

client = OpenCodeClient()

# Projects
for p in client.list_projects() or []:
    print(p.id, p.directory)

# Current path
pinfo = client.get_path()
print(pinfo.directory)

# File status
files = client.file_status() or []
for f in files:
    print(f.path, f.type)
```